Hello,
I’m having some trouble trying to create a query for a multivalued field. I've read the official tutorials but, as a beginner, I'm not sure the things I'm trying to do are feasible. I hope you can help me.
I work in Linguistics, and I want to describe the elements that appear in a sentence. For instance, John smiled has a SUBJECT (ID = 1), John washed the car has a SUBJECT and a DIRECT OBJECT (ID = 2), John gave me the book has a SUBJECT, a DIRECT OBJECT and an INDIRECT OBJECT (ID = 3). I thought a multivalued field was an efficient way to classify the argument structure of the verbs used in the examples. I also thought it would allow me to see, for example, how many times an element appears overall (alone (e.g. “1”) or with other elements (e.g. “1;2”, “1;2;3”…) and how many times a specific construction appears (for example, “1;3”). Are those things at all possible?
I have another question for you. My database is pretty big and complex, and I’m actually studying different kinds of sentences. To make things simpler, let's call them DECLARATIVE (ID = 1), IMPERATIVE (ID = 2) and INTERROGATIVE (ID =3). Building on my previous question, could I create a query that
1) tells me how many times an element appears (alone or coupled with other elements) in a specific type of sentence? (E.g.: “1” appears 95 times overall in DECLARATIVE sentences (54 times alone, 41 times with other elements))
2) tells me which constructions occur for each type of sentence, and how often they appear? Something like this:
Thank you for your help,
Dafne
P.S.: I have multiple tables containing my options (for example, tbl_SENTENCE has SENTENCE_ID and SENTENCE_label, tbl_ELEMENT has ELEMENT_ID and ELEMENT_label...). They're linked to controls in a form that populates another table called tbl_DATA.
I’m having some trouble trying to create a query for a multivalued field. I've read the official tutorials but, as a beginner, I'm not sure the things I'm trying to do are feasible. I hope you can help me.
I work in Linguistics, and I want to describe the elements that appear in a sentence. For instance, John smiled has a SUBJECT (ID = 1), John washed the car has a SUBJECT and a DIRECT OBJECT (ID = 2), John gave me the book has a SUBJECT, a DIRECT OBJECT and an INDIRECT OBJECT (ID = 3). I thought a multivalued field was an efficient way to classify the argument structure of the verbs used in the examples. I also thought it would allow me to see, for example, how many times an element appears overall (alone (e.g. “1”) or with other elements (e.g. “1;2”, “1;2;3”…) and how many times a specific construction appears (for example, “1;3”). Are those things at all possible?
I have another question for you. My database is pretty big and complex, and I’m actually studying different kinds of sentences. To make things simpler, let's call them DECLARATIVE (ID = 1), IMPERATIVE (ID = 2) and INTERROGATIVE (ID =3). Building on my previous question, could I create a query that
1) tells me how many times an element appears (alone or coupled with other elements) in a specific type of sentence? (E.g.: “1” appears 95 times overall in DECLARATIVE sentences (54 times alone, 41 times with other elements))
2) tells me which constructions occur for each type of sentence, and how often they appear? Something like this:
IMPERATIVE (ID = 2) (total: 75)
1 = occurs 26 times
1;2 = occurs 49 times
INTERROGATIVE (ID = 3) (total: 62)
1;2 = occurs 48 times
1;2;3 = occurs 14 times
… etc.
1 = occurs 26 times
1;2 = occurs 49 times
INTERROGATIVE (ID = 3) (total: 62)
1;2 = occurs 48 times
1;2;3 = occurs 14 times
… etc.
Thank you for your help,
Dafne
P.S.: I have multiple tables containing my options (for example, tbl_SENTENCE has SENTENCE_ID and SENTENCE_label, tbl_ELEMENT has ELEMENT_ID and ELEMENT_label...). They're linked to controls in a form that populates another table called tbl_DATA.