Simple Question (Direct)
Simple Question
Q21664333
P26
Q502895
USER
Which person is married to Tashfeen Malik ?
(Q21664333,P26,c(Q502895))
action filter_type
action find
entity Q21664333
relation P26
type Q502895
['Q21664333', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q21664333 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Tashfeen Malik
action filter_type
action find
entity Tashfeen Malik
relation spouse
type common name
['Tashfeen Malik', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Tashfeen_Malik property:spouse ?k . ?k rdf:type ontology:common_name }
[]
common name
Q21663916
SYSTEM
Syed Rizwan Farook
Q21663916
(Q21664333,P26,c(Q502895))
action filter_type
action find
entity Q21664333
relation P26
type Q502895
[ANSWER] is married to Tashfeen Malik
['Q21664333', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q21664333 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Syed Rizwan Farook
Syed Rizwan Farook is married to Tashfeen Malik
Syed Rizwan Farook
action filter_type
action find
entity Tashfeen Malik
relation spouse
type common name
['Tashfeen Malik', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Tashfeen_Malik property:spouse ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21663916
P19
Q56061
USER
Where was that person born ?
(Q21663916,P19,c(Q56061))
action filter_type
action find
entity Q21663916
relation P19
type Q56061
['Q21663916', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q21663916 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Syed Rizwan Farook
action filter_type
action find
entity Syed Rizwan Farook
relation place of birth
type administrative territorial entity
['Syed Rizwan Farook', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Syed_Rizwan_Farook property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1297
SYSTEM
Chicago
Q1297
(Q21663916,P19,c(Q56061))
action filter_type
action find
entity Q21663916
relation P19
type Q56061
That person was born in [ANSWER]
['Q21663916', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q21663916 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Chicago
That person was born in Chicago
Chicago
action filter_type
action find
entity Syed Rizwan Farook
relation place of birth
type administrative territorial entity
['Syed Rizwan Farook', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Syed_Rizwan_Farook property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1297 Q4595588
P20
Q502895
USER
Did Soetjipto Joedodihardjo die in that administrative territory ?
(Q4595588,P20,Q1297)
action is_in
entity Q4595588
action find
entity Q1297
relation P20
['Q4595588', 'P20', 'Q1297']
ASK WHERE { resource:Q1297 property:P20 resource:Q4595588 }
Chicago Soetjipto Joedodihardjo
action is_in
entity Soetjipto Joedodihardjo
action find
entity Chicago
relation place of death
['Soetjipto Joedodihardjo', 'place of death', 'Chicago']
ASK WHERE { resource:Chicago property:place_of_death resource:Soetjipto_Joedodihardjo }
[]
common name
SYSTEM
NO
(Q4595588,P20,Q1297)
action is_in
entity Q4595588
action find
entity Q1297
relation P20
[ANSWER]
['Q4595588', 'P20', 'Q1297']
ASK WHERE { resource:Q1297 property:P20 resource:Q4595588 }
No
action is_in
entity Soetjipto Joedodihardjo
action find
entity Chicago
relation place of death
['Soetjipto Joedodihardjo', 'place of death', 'Chicago']
ASK WHERE { resource:Chicago property:place_of_death resource:Soetjipto_Joedodihardjo }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1297
P6
Q502895
USER
Which person is the head of government of Chicago ?
(Q1297,P6,c(Q502895))
action filter_type
action find
entity Q1297
relation P6
type Q502895
['Q1297', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1297 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Chicago
action filter_type
action find
entity Chicago
relation head of government
type common name
['Chicago', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Chicago property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]
common name
Q298443
SYSTEM
Rahm Emanuel
Q298443
(Q1297,P6,c(Q502895))
action filter_type
action find
entity Q1297
relation P6
type Q502895
[ANSWER] is the head of government of Chicago
['Q1297', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1297 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Rahm Emanuel
Rahm Emanuel is the head of government of Chicago
Rahm Emanuel
action filter_type
action find
entity Chicago
relation head of government
type common name
['Chicago', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Chicago property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q298443
P140
Q874405
USER
What is the religious affiliation of that person ?
(Q298443,P140,c(Q874405))
action filter_type
action find
entity Q298443
relation P140
type Q874405
['Q298443', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { resource:Q298443 property:P140 ?v . ?v rdf:type ontology:Q874405 }
Rahm Emanuel
action filter_type
action find
entity Rahm Emanuel
relation religion
type social group
['Rahm Emanuel', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { resource:Rahm_Emanuel property:religion ?v . ?v rdf:type ontology:social_group }
[]
social group
Q9268
SYSTEM
Judaism
Q9268
(Q298443,P140,c(Q874405))
action filter_type
action find
entity Q298443
relation P140
type Q874405
The religious affiliation of that person is to [ANSWER]
['Q298443', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { resource:Q298443 property:P140 ?v . ?v rdf:type ontology:Q874405 }
Judaism
The religious affiliation of that person is to Judaism
Judaism
action filter_type
action find
entity Rahm Emanuel
relation religion
type social group
['Rahm Emanuel', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { resource:Rahm_Emanuel property:religion ?v . ?v rdf:type ontology:social_group }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7329340 Q21664333
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Tashfeen Malik or Richard T. Crane ?
OR((Q21664333,P27,c(Q15617994)), (Q7329340,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q21664333
relation P27
action find
entity Q7329340
relation P27
type Q15617994
{'OR': [['Q21664333', 'P27', {'concept': 'Q15617994'}], ['Q7329340', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q21664333 property:P27 ?o } UNION { resource:Q7329340 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Richard T. Crane Tashfeen Malik
action filter_type
action union
action find
entity Tashfeen Malik
relation country of citizenship
action find
entity Richard T. Crane
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Tashfeen Malik', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Richard T. Crane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Tashfeen_Malik property:country_of_citizenship ?o } UNION { resource:Richard_T._Crane property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q843 Q30
SYSTEM
Pakistan, United States of America
Q843 Q30
OR((Q21664333,P27,c(Q15617994)), (Q7329340,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q21664333
relation P27
action find
entity Q7329340
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Tashfeen Malik or Richard T. Crane
{'OR': [['Q21664333', 'P27', {'concept': 'Q15617994'}], ['Q7329340', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q21664333 property:P27 ?o } UNION { resource:Q7329340 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Pakistan United States of America
Pakistan and United States of America are the countries of citizenship of Tashfeen Malik or Richard T. Crane
Pakistan United States of America
action filter_type
action union
action find
entity Tashfeen Malik
relation country of citizenship
action find
entity Richard T. Crane
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Tashfeen Malik', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Richard T. Crane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Tashfeen_Malik property:country_of_citizenship ?o } UNION { resource:Richard_T._Crane property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with atleast 78 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 78
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?r >= 78 ) . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?r ) WHERE { ?a property:P530 ?k . ?a rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?a } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 78
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?r >= 78 ) . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?r ) WHERE { ?a property:diplomatic_relation ?k . ?a rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 78
[ANSWERS] have a diplomatic relationship with atleast 78 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?r >= 78 ) . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?r ) WHERE { ?a property:P530 ?k . ?a rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?a } }
Germany Australia
Germany and Australia have a diplomatic relationship with atleast 78 administrative territories
Germany Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 78
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?r >= 78 ) . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?r ) WHERE { ?a property:diplomatic_relation ?k . ?a rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q183 Q408
P85
Q7725634
USER
What are the anthems for Germany and Australia ?
(Q183,P85,c(Q7725634)) (Q408,P85,c(Q7725634))
action union
action filter_type
action find
entity Q183
relation P85
type Q7725634
action filter_type
action find
entity Q408
relation P85
type Q7725634
['Q183', 'P85', {'concept': 'Q7725634'}] ['Q408', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?n WHERE { { resource:Q183 property:P85 ?n . ?n rdf:type ontology:Q7725634 } UNION { resource:Q408 property:P85 ?n . ?n rdf:type ontology:Q7725634 } }
Germany Australia
action union
action filter_type
action find
entity Germany
relation anthem
type literary work
action filter_type
action find
entity Australia
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}] ['Australia', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?n WHERE { { resource:Germany property:anthem ?n . ?n rdf:type ontology:literary_work } UNION { resource:Australia property:anthem ?n . ?n rdf:type ontology:literary_work } }
[]
literary work
Q44042 Q40807
SYSTEM
Das Lied der Deutschen, God Save the Queen
Q44042 Q40807
(Q183,P85,c(Q7725634)) (Q408,P85,c(Q7725634))
action union
action filter_type
action find
entity Q183
relation P85
type Q7725634
action filter_type
action find
entity Q408
relation P85
type Q7725634
The anthems for Germany and Australia are [ANSWERS]
['Q183', 'P85', {'concept': 'Q7725634'}] ['Q408', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?n WHERE { { resource:Q183 property:P85 ?n . ?n rdf:type ontology:Q7725634 } UNION { resource:Q408 property:P85 ?n . ?n rdf:type ontology:Q7725634 } }
Das Lied der Deutschen God Save the Queen
The anthems for Germany and Australia are Das Lied der Deutschen and God Save the Queen
Das Lied der Deutschen God Save the Queen
action union
action filter_type
action find
entity Germany
relation anthem
type literary work
action filter_type
action find
entity Australia
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}] ['Australia', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?n WHERE { { resource:Germany property:anthem ?n . ?n rdf:type ontology:literary_work } UNION { resource:Australia property:anthem ?n . ?n rdf:type ontology:literary_work } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q44042
P676
Q502895
USER
Who is the lyricist of that literary work ?
(Q44042,P676,c(Q502895))
action filter_type
action find
entity Q44042
relation P676
type Q502895
['Q44042', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q44042 property:P676 ?l . ?l rdf:type ontology:Q502895 }
Das Lied der Deutschen
action filter_type
action find
entity Das Lied der Deutschen
relation lyrics by
type common name
['Das Lied der Deutschen', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Das_Lied_der_Deutschen property:lyrics_by ?l . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q40807
SYSTEM
Did you mean God Save the Queen ?
Q44042 Q40807
(Q44042,P676,c(Q502895)) (Q40807,P676,c(Q502895))
[ANSWER]
['Q44042', 'P676', {'concept': 'Q502895'}] ['Q40807', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q44042 property:P676 ?l . ?l rdf:type ontology:Q502895 }
Das Lied der Deutschen God Save the Queen
Did you mean God Save the Queen ?
God Save the Queen
['Das Lied der Deutschen', 'lyrics by', {'concept': 'common name'}] ['God Save the Queen', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Das_Lied_der_Deutschen property:lyrics_by ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Das Lied der Deutschen. Could you tell me the answer for that?
(Q44042,P676,c(Q502895))
Q44042
['Q44042', 'P676', {'concept': 'Q502895'}]
['Das Lied der Deutschen', 'lyrics by', {'concept': 'common name'}]
[]
Q76938
SYSTEM
August Heinrich Hoffmann von Fallersleben
Q76938
(Q44042,P676,c(Q502895))
action filter_type
action find
entity Q44042
relation P676
type Q502895
The lyricist of that literary work is the [ANSWER]
['Q44042', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q44042 property:P676 ?l . ?l rdf:type ontology:Q502895 }
August Heinrich Hoffmann von Fallersleben
The lyricist of that literary work is the August Heinrich Hoffmann von Fallersleben
August Heinrich Hoffmann von Fallersleben
action filter_type
action find
entity Das Lied der Deutschen
relation lyrics by
type common name
['Das Lied der Deutschen', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Das_Lied_der_Deutschen property:lyrics_by ?l . ?l rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19871705 Q1297
P190 P159
Q56061
USER
Which administrative territories are sister towns of Chicago or are the head offices of Agricen ?
OR((Q1297,P190,c(Q56061)), (Q19871705,P159,c(Q56061)))
action filter_type
action union
action find
entity Q1297
relation P190
action find
entity Q19871705
relation P159
type Q56061
{'OR': [['Q1297', 'P190', {'concept': 'Q56061'}], ['Q19871705', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1297 property:P190 ?g } UNION { resource:Q19871705 property:P159 ?g } } . ?g rdf:type ontology:Q56061 }
Agricen Chicago
action filter_type
action union
action find
entity Chicago
relation sister city
action find
entity Agricen
relation headquarters location
type administrative territorial entity
{'OR': [['Chicago', 'sister city', {'concept': 'administrative territorial entity'}], ['Agricen', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Chicago property:sister_city ?g } UNION { resource:Agricen property:headquarters_location ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1718 Q1353 Q1524 Q490 Q42800 Q3761 Q270 Q3711 Q174 Q128269
SYSTEM
Some of them are Düsseldorf, Delhi, Athens, Milan, Belo Horizonte, Accra, Warsaw, Belgrade, São Paulo, Frisco
Q1353 Q649 Q3761 Q129610 Q1718 Q1524 Q42800 Q1489 Q128269 Q152406 Q987 Q3711 Q174 Q216 Q172 Q270 Q6487 Q490 Q5468 Q190828 Q3805 Q1085
OR((Q1297,P190,c(Q56061)), (Q19871705,P159,c(Q56061)))
action filter_type
action union
action find
entity Q1297
relation P190
action find
entity Q19871705
relation P159
type Q56061
[ANSWERS] are sister towns of Chicago or are the head offices of Agricen
{'OR': [['Q1297', 'P190', {'concept': 'Q56061'}], ['Q19871705', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1297 property:P190 ?g } UNION { resource:Q19871705 property:P159 ?g } } . ?g rdf:type ontology:Q56061 }
Delhi Moscow Accra Galway Düsseldorf Athens Belo Horizonte Mexico City Frisco Kiryat Gat New Delhi Belgrade São Paulo Vilnius Toronto Warsaw Antalya Milan Durban Petah Tikva Amman Prague
Düsseldorf, Delhi, Athens, Milan, Belo Horizonte, Accra, Warsaw, Belgrade, São Paulo and Frisco are sister towns of Chicago or are the head offices of Agricen
Düsseldorf Delhi Athens Milan Belo Horizonte Accra Warsaw Belgrade São Paulo Frisco
action filter_type
action union
action find
entity Chicago
relation sister city
action find
entity Agricen
relation headquarters location
type administrative territorial entity
{'OR': [['Chicago', 'sister city', {'concept': 'administrative territorial entity'}], ['Agricen', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Chicago property:sister_city ?g } UNION { resource:Agricen property:headquarters_location ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]