Simple Question (Direct)
Simple Question
Q3683744
P495
Q15617994
USER
Where did Loaded Guns originate ?
(Q3683744,P495,c(Q15617994))
action filter_type
action find
entity Q3683744
relation P495
type Q15617994
['Q3683744', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q3683744 property:P495 ?r }
Loaded Guns
action filter_type
action find
entity Loaded Guns
relation country of origin
type designation for an administrative territorial entity
['Loaded Guns', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Loaded_Guns property:country_of_origin ?r }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3683744,P495,c(Q15617994))
action filter_type
action find
entity Q3683744
relation P495
type Q15617994
Loaded Guns originated from [ANSWER]
['Q3683744', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q3683744 property:P495 ?r }
Italy
Loaded Guns originated from Italy
Italy
action filter_type
action find
entity Loaded Guns
relation country of origin
type designation for an administrative territorial entity
['Loaded Guns', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Loaded_Guns property:country_of_origin ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3683744
P86
Q502895
USER
Who did the compostion for that work of art ?
(Q38,P86,c(Q502895))
action filter_type
action find
entity Q3683744
relation P86
type Q502895
['Q38', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3683744 property:P86 ?w . ?w rdf:type ontology:Q502895 }
Loaded Guns
action filter_type
action find
entity Loaded Guns
relation composer
type common name
['Italy', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Loaded_Guns property:composer ?w . ?w rdf:type ontology:common_name }
[]
common name
Q1332599
SYSTEM
Luis Bacalov
Q1332599
(Q38,P86,c(Q502895))
action filter_type
action find
entity Q3683744
relation P86
type Q502895
[ANSWER] did the compostion for that work of art
['Q38', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3683744 property:P86 ?w . ?w rdf:type ontology:Q502895 }
Luis Bacalov
Luis Bacalov did the compostion for that work of art
Luis Bacalov
action filter_type
action find
entity Loaded Guns
relation composer
type common name
['Italy', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Loaded_Guns property:composer ?w . ?w rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1332599 Q390865 Q38
P27
Q15617994
USER
Is that person a citizen of Ittiri and Italy ?
(Q1332599,P27,Q390865) (Q1332599,P27,Q38)
action is_in
entity Q1332599
action intersection
action find_reverse
entity Q390865
relation P27
action find_reverse
entity Q38
relation P27
['Q1332599', 'P27', 'Q390865'] ['Q1332599', 'P27', 'Q38']
ASK WHERE { resource:Q1332599 property:P27 resource:Q38 . resource:Q1332599 property:P27 resource:Q390865 }
Luis Bacalov Ittiri Italy
action is_in
entity Luis Bacalov
action intersection
action find_reverse
entity Ittiri
relation country of citizenship
action find_reverse
entity Italy
relation country of citizenship
['Luis Bacalov', 'country of citizenship', 'Ittiri'] ['Luis Bacalov', 'country of citizenship', 'Italy']
ASK WHERE { resource:Luis_Bacalov property:country_of_citizenship resource:Italy . resource:Luis_Bacalov property:country_of_citizenship resource:Ittiri }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q1332599,P27,Q390865) (Q1332599,P27,Q38)
action is_in
entity Q1332599
action intersection
action find_reverse
entity Q390865
relation P27
action find_reverse
entity Q38
relation P27
[ANSWER]
['Q1332599', 'P27', 'Q390865'] ['Q1332599', 'P27', 'Q38']
ASK WHERE { resource:Q1332599 property:P27 resource:Q38 . resource:Q1332599 property:P27 resource:Q390865 }
NO and YES respectively
action is_in
entity Luis Bacalov
action intersection
action find_reverse
entity Ittiri
relation country of citizenship
action find_reverse
entity Italy
relation country of citizenship
['Luis Bacalov', 'country of citizenship', 'Ittiri'] ['Luis Bacalov', 'country of citizenship', 'Italy']
ASK WHERE { resource:Luis_Bacalov property:country_of_citizenship resource:Italy . resource:Luis_Bacalov property:country_of_citizenship resource:Ittiri }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q7814517 Q38
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relations with Italy and are Tolombeh-ye Jehad-e Seh a part of ?
AND((Q38,P530,c(Q15617994)), (Q7814517,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q7814517
relation P17
type Q15617994
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q7814517', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q38 property:P530 ?q . resource:Q7814517 property:P17 ?q }
Tolombeh-ye Jehad-e Seh Italy
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Tolombeh-ye Jehad-e Seh
relation country
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Tolombeh-ye Jehad-e Seh', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Italy property:diplomatic_relation ?q . resource:Tolombeh-ye_Jehad-e_Seh property:country ?q }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
AND((Q38,P530,c(Q15617994)), (Q7814517,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q7814517
relation P17
type Q15617994
[ANSWER] have diplomatic relations with Italy and are Tolombeh-ye Jehad-e Seh a part of
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q7814517', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q38 property:P530 ?q . resource:Q7814517 property:P17 ?q }
Iran
Iran have diplomatic relations with Italy and are Tolombeh-ye Jehad-e Seh a part of
Iran
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Tolombeh-ye Jehad-e Seh
relation country
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Tolombeh-ye Jehad-e Seh', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Italy property:diplomatic_relation ?q . resource:Tolombeh-ye_Jehad-e_Seh property:country ?q }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q794 Q801
P530
Q15617994
USER
Does Israel have diplomatic relations with that one ?
(Q801,P530,Q794)
action is_in
entity Q801
action find
entity Q794
relation P530
['Q801', 'P530', 'Q794']
ASK WHERE { resource:Q794 property:P530 resource:Q801 }
Iran Israel
action is_in
entity Israel
action find
entity Iran
relation diplomatic relation
['Israel', 'diplomatic relation', 'Iran']
ASK WHERE { resource:Iran property:diplomatic_relation resource:Israel }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q801,P530,Q794)
action is_in
entity Q801
action find
entity Q794
relation P530
[ANSWER]
['Q801', 'P530', 'Q794']
ASK WHERE { resource:Q794 property:P530 resource:Q801 }
Yes
action is_in
entity Israel
action find
entity Iran
relation diplomatic relation
['Israel', 'diplomatic relation', 'Iran']
ASK WHERE { resource:Iran property:diplomatic_relation resource:Israel }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with atleast 48 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 48
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { FILTER ( ?p >= 48 ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?p ) WHERE { ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 . ?g property:P530 ?n } GROUP BY ?g } }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 48
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { FILTER ( ?p >= 48 ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?p ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:diplomatic_relation ?n } GROUP BY ?g } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
3
Q155 Q38 Q230
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 48
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { FILTER ( ?p >= 48 ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?p ) WHERE { ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 . ?g property:P530 ?n } GROUP BY ?g } }
Brazil Italy Georgia
3
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 48
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { FILTER ( ?p >= 48 ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?p ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:diplomatic_relation ?n } GROUP BY ?g } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q794
P101
Q502895
USER
Which people have specialisation in Iran ?
(c(Q502895),P101,Q794)
action filter_type
action find_reverse
entity Q794
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q794']
SELECT DISTINCT ?l WHERE { ?l property:P101 resource:Q794 . ?l rdf:type ontology:Q502895 }
Iran
action filter_type
action find_reverse
entity Iran
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'Iran']
SELECT DISTINCT ?l WHERE { ?l property:field_of_work resource:Iran . ?l rdf:type ontology:common_name }
[]
common name
Q20741355 Q25991769
SYSTEM
Negar Mortazavi, Holly Dagres
Q20741355 Q25991769
(c(Q502895),P101,Q794)
action filter_type
action find_reverse
entity Q794
relation P101
type Q502895
[ANSWERS] have specialisation in Iran
[{'concept': 'Q502895'}, 'P101', 'Q794']
SELECT DISTINCT ?l WHERE { ?l property:P101 resource:Q794 . ?l rdf:type ontology:Q502895 }
Negar Mortazavi Holly Dagres
Negar Mortazavi and Holly Dagres have specialisation in Iran
Negar Mortazavi Holly Dagres
action filter_type
action find_reverse
entity Iran
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'Iran']
SELECT DISTINCT ?l WHERE { ?l property:field_of_work resource:Iran . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q20741355 Q25991769
P27
Q15617994
USER
Which administrative territories do those people belong to ?
(Q20741355,P27,c(Q15617994)) (Q25991769,P27,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P27
type Q15617994
['Q20741355', 'P27', {'concept': 'Q15617994'}] ['Q25991769', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . ?w property:P27 ?s . VALUES ( ?w ) { ( resource:Q20741355 ) ( resource:Q25991769 ) } }
Negar Mortazavi Holly Dagres
action filter_type
action find
entity prev_answer
relation country of citizenship
type designation for an administrative territorial entity
['Negar Mortazavi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Holly Dagres', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w property:country_of_citizenship ?s . VALUES ( ?w ) { ( resource:Negar_Mortazavi ) ( resource:Holly_Dagres ) } }
[]
designation for an administrative territorial entity
Q794 Q30
SYSTEM
Iran, United States of America
Q794 Q30
(Q20741355,P27,c(Q15617994)) (Q25991769,P27,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P27
type Q15617994
Those people belong to [ANSWERS]
['Q20741355', 'P27', {'concept': 'Q15617994'}] ['Q25991769', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . ?w property:P27 ?s . VALUES ( ?w ) { ( resource:Q20741355 ) ( resource:Q25991769 ) } }
Iran United States of America
Those people belong to Iran and United States of America
Iran United States of America
action filter_type
action find
entity prev_answer
relation country of citizenship
type designation for an administrative territorial entity
['Negar Mortazavi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Holly Dagres', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w property:country_of_citizenship ?s . VALUES ( ?w ) { ( resource:Negar_Mortazavi ) ( resource:Holly_Dagres ) } }
[]