Simple Question (Direct)
Simple Question
Q3824962
P344
Q502895
USER
Which person serves as the director of photography for Life as It Comes ?
(Q3824962,P344,c(Q502895))
action filter_type
action find
entity Q3824962
relation P344
type Q502895
['Q3824962', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q3824962 property:P344 ?i . ?i rdf:type ontology:Q502895 }
Life as It Comes
action filter_type
action find
entity Life as It Comes
relation director of photography
type common name
['Life as It Comes', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Life_as_It_Comes property:director_of_photography ?i . ?i rdf:type ontology:common_name }
[]
common name
Q3897086
SYSTEM
Pasquale Mari
Q3897086
(Q3824962,P344,c(Q502895))
action filter_type
action find
entity Q3824962
relation P344
type Q502895
[ANSWER] serves as the director of photography for Life as It Comes
['Q3824962', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q3824962 property:P344 ?i . ?i rdf:type ontology:Q502895 }
Pasquale Mari
Pasquale Mari serves as the director of photography for Life as It Comes
Pasquale Mari
action filter_type
action find
entity Life as It Comes
relation director of photography
type common name
['Life as It Comes', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Life_as_It_Comes property:director_of_photography ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3824962
P58
Q502895
USER
Which person wrote the script for that work of art ?
(Q3897086,P58,c(Q502895))
action filter_type
action find
entity Q3824962
relation P58
type Q502895
['Q3897086', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q3824962 property:P58 ?e }
Life as It Comes
action filter_type
action find
entity Life as It Comes
relation screenwriter
type common name
['Pasquale Mari', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Life_as_It_Comes property:screenwriter ?e }
[]
common name
Q2338414
SYSTEM
Stefano Incerti
Q2338414
(Q3897086,P58,c(Q502895))
action filter_type
action find
entity Q3824962
relation P58
type Q502895
[ANSWER] wrote the script for that work of art
['Q3897086', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q3824962 property:P58 ?e }
Stefano Incerti
Stefano Incerti wrote the script for that work of art
Stefano Incerti
action filter_type
action find
entity Life as It Comes
relation screenwriter
type common name
['Pasquale Mari', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Life_as_It_Comes property:screenwriter ?e }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q24680564 Q2338414
P27
Q15617994
USER
Which administrative territories are the native countriesof Stefano Incerti or Jean Neuhaus Junior ?
OR((Q2338414,P27,c(Q15617994)), (Q24680564,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2338414
relation P27
action find
entity Q24680564
relation P27
type Q15617994
{'OR': [['Q2338414', 'P27', {'concept': 'Q15617994'}], ['Q24680564', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q2338414 property:P27 ?r } UNION { resource:Q24680564 property:P27 ?r } } }
Jean Neuhaus Junior Stefano Incerti
action filter_type
action union
action find
entity Stefano Incerti
relation country of citizenship
action find
entity Jean Neuhaus Junior
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Stefano Incerti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jean Neuhaus Junior', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Stefano_Incerti property:country_of_citizenship ?r } UNION { resource:Jean_Neuhaus_Junior property:country_of_citizenship ?r } } }
[]
designation for an administrative territorial entity
Q31 Q38
SYSTEM
Belgium, Italy
Q31 Q38
OR((Q2338414,P27,c(Q15617994)), (Q24680564,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2338414
relation P27
action find
entity Q24680564
relation P27
type Q15617994
[ANSWERS] are the native countriesof Stefano Incerti or Jean Neuhaus Junior
{'OR': [['Q2338414', 'P27', {'concept': 'Q15617994'}], ['Q24680564', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q2338414 property:P27 ?r } UNION { resource:Q24680564 property:P27 ?r } } }
Belgium Italy
Belgium and Italy are the native countriesof Stefano Incerti or Jean Neuhaus Junior
Belgium Italy
action filter_type
action union
action find
entity Stefano Incerti
relation country of citizenship
action find
entity Jean Neuhaus Junior
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Stefano Incerti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jean Neuhaus Junior', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Stefano_Incerti property:country_of_citizenship ?r } UNION { resource:Jean_Neuhaus_Junior property:country_of_citizenship ?r } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q998396
P495
Q838948
USER
Are those administrative territories a country of origin of L'emmerdeur ?
(Q998396,P495,Q31) (Q998396,P495,Q38)
action is_in
entity prev_answer
action find
entity Q998396
relation P495
['Q998396', 'P495', 'Q31'] ['Q998396', 'P495', 'Q38']
ASK WHERE { VALUES ( ?y ) { ( resource:Q31 ) ( resource:Q38 ) } . resource:Q998396 property:P495 ?y }
L'emmerdeur
action is_in
entity prev_answer
action find
entity L'emmerdeur
relation country of origin
["L'emmerdeur", 'country of origin', 'Belgium'] ["L'emmerdeur", 'country of origin', 'Italy']
ASK WHERE { VALUES ( ?y ) { ( resource:Belgium ) ( resource:Italy ) } . resource:L'emmerdeur property:country_of_origin ?y }
[]
work of art
SYSTEM
YES
(Q998396,P495,Q31) (Q998396,P495,Q38)
action is_in
entity prev_answer
action find
entity Q998396
relation P495
[ANSWER]
['Q998396', 'P495', 'Q31'] ['Q998396', 'P495', 'Q38']
ASK WHERE { VALUES ( ?y ) { ( resource:Q31 ) ( resource:Q38 ) } . resource:Q998396 property:P495 ?y }
Yes
action is_in
entity prev_answer
action find
entity L'emmerdeur
relation country of origin
["L'emmerdeur", 'country of origin', 'Belgium'] ["L'emmerdeur", 'country of origin', 'Italy']
ASK WHERE { VALUES ( ?y ) { ( resource:Belgium ) ( resource:Italy ) } . resource:L'emmerdeur property:country_of_origin ?y }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3824962 Q38
P495
Q15617994
USER
Is Italy the country of origin of Life as It Comes ?
(Q3824962,P495,Q38)
action is_in
entity Q38
action find
entity Q3824962
relation P495
['Q3824962', 'P495', 'Q38']
ASK WHERE { resource:Q3824962 property:P495 resource:Q38 }
Life as It Comes Italy
action is_in
entity Italy
action find
entity Life as It Comes
relation country of origin
['Life as It Comes', 'country of origin', 'Italy']
ASK WHERE { resource:Life_as_It_Comes property:country_of_origin resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q3824962,P495,Q38)
action is_in
entity Q38
action find
entity Q3824962
relation P495
[ANSWER]
['Q3824962', 'P495', 'Q38']
ASK WHERE { resource:Q3824962 property:P495 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Life as It Comes
relation country of origin
['Life as It Comes', 'country of origin', 'Italy']
ASK WHERE { resource:Life_as_It_Comes property:country_of_origin resource:Italy }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?v ) { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?r ) WHERE { ?h property:P530 ?n . ?h rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?h } } . { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?l ) WHERE { ?i property:P530 ?t . ?i rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?l = ?v ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?v ) { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?r ) WHERE { ?h property:diplomatic_relation ?n . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } } . { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?l ) WHERE { ?i property:diplomatic_relation ?t . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?l = ?v ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?v ) { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?r ) WHERE { ?h property:P530 ?n . ?h rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?h } } . { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?l ) WHERE { ?i property:P530 ?t . ?i rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?l = ?v ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relations with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?v ) { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?r ) WHERE { ?h property:diplomatic_relation ?n . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } } . { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?l ) WHERE { ?i property:diplomatic_relation ?t . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?l = ?v ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q929
P17
Q473972
USER
Which protected areas are present in that administrative territory ?
(c(Q473972),P17,Q929)
action filter_type
action find_reverse
entity Q929
relation P17
type Q473972
[{'concept': 'Q473972'}, 'P17', 'Q929']
SELECT DISTINCT ?d WHERE { ?d property:P17 resource:Q929 . ?d rdf:type ontology:Q473972 }
Central African Republic
action filter_type
action find_reverse
entity Central African Republic
relation country
type protected area
[{'concept': 'protected area'}, 'country', 'Central African Republic']
SELECT DISTINCT ?d WHERE { ?d property:country resource:Central_African_Republic . ?d rdf:type ontology:protected_area }
[]
protected area
Clarification for simple ques.
Q29999
SYSTEM
Did you mean Kingdom of the Netherlands ?
Q929 Q29999 Q232
(c(Q473972),P17,Q929) (c(Q473972),P17,Q29999) (c(Q473972),P17,Q232)
[ANSWER]
[{'concept': 'Q473972'}, 'P17', 'Q929'] [{'concept': 'Q473972'}, 'P17', 'Q29999'] [{'concept': 'Q473972'}, 'P17', 'Q232']
SELECT DISTINCT ?d WHERE { ?d property:P17 resource:Q929 . ?d rdf:type ontology:Q473972 }
Central African Republic Kingdom of the Netherlands Kazakhstan
Did you mean Kingdom of the Netherlands ?
Kingdom of the Netherlands
[{'concept': 'protected area'}, 'country', 'Central African Republic'] [{'concept': 'protected area'}, 'country', 'Kingdom of the Netherlands'] [{'concept': 'protected area'}, 'country', 'Kazakhstan']
SELECT DISTINCT ?d WHERE { ?d property:country resource:Central_African_Republic . ?d rdf:type ontology:protected_area }
[]
Simple Question (Coreferenced)
USER
No, I meant Central African Republic. Could you tell me the answer for that?
(c(Q473972),P17,Q929)
Q929
[{'concept': 'Q473972'}, 'P17', 'Q929']
[{'concept': 'protected area'}, 'country', 'Central African Republic']
[]
Q503835 Q7110186 Q6799652
SYSTEM
Manovo-Gounda St. Floris National Park, Ouandjia Vakaga Faunal Reserve, Mbaéré Bodingué National Park
Q503835 Q7110186 Q6799652 Q1739542 Q937596 Q1885849 Q4778812 Q3364411
(c(Q473972),P17,Q929)
action filter_type
action find_reverse
entity Q929
relation P17
type Q473972
[ANSWERS] are present in that administrative territory
[{'concept': 'Q473972'}, 'P17', 'Q929']
SELECT DISTINCT ?d WHERE { ?d property:P17 resource:Q929 . ?d rdf:type ontology:Q473972 }
Manovo-Gounda St. Floris National Park Ouandjia Vakaga Faunal Reserve Mbaéré Bodingué National Park Nana Barya Faunal Reserve Andre Felix National Park Bamingui-Bangoran National Park and Biosphere Reserve Aouk Aoukale Faunal Reserve Dzanga-Ndoki National Park
Manovo-Gounda St. Floris National Park, Ouandjia Vakaga Faunal Reserve and Mbaéré Bodingué National Park are present in that administrative territory
Manovo-Gounda St. Floris National Park Ouandjia Vakaga Faunal Reserve Mbaéré Bodingué National Park
action filter_type
action find_reverse
entity Central African Republic
relation country
type protected area
[{'concept': 'protected area'}, 'country', 'Central African Republic']
SELECT DISTINCT ?d WHERE { ?d property:country resource:Central_African_Republic . ?d rdf:type ontology:protected_area }
[]