Simple Question (Direct)
Simple Question
Q119896
P937
Q56061
USER
Which is the work location of Michel Béguelin ?
(Q119896,P937,c(Q56061))
action filter_type
action find
entity Q119896
relation P937
type Q56061
['Q119896', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q119896 property:P937 ?d . ?d rdf:type ontology:Q56061 }
Michel Béguelin
action filter_type
action find
entity Michel Béguelin
relation work location
type administrative territorial entity
['Michel Béguelin', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Michel_Béguelin property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q70
SYSTEM
Bern
Q70
(Q119896,P937,c(Q56061))
action filter_type
action find
entity Q119896
relation P937
type Q56061
[ANSWER] is the work location of Michel Béguelin
['Q119896', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q119896 property:P937 ?d . ?d rdf:type ontology:Q56061 }
Bern
Bern is the work location of Michel Béguelin
Bern
action filter_type
action find
entity Michel Béguelin
relation work location
type administrative territorial entity
['Michel Béguelin', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Michel_Béguelin property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q70
P931
Q62447
USER
What city is served by that administrative territory ?
(c(Q62447),P931,Q70)
action filter_type
action find_reverse
entity Q70
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q70']
SELECT DISTINCT ?q WHERE { ?q property:P931 resource:Q70 . ?q rdf:type ontology:Q62447 }
Bern
action filter_type
action find_reverse
entity Bern
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Bern']
SELECT DISTINCT ?q WHERE { ?q property:place_served_by_airport resource:Bern . ?q rdf:type ontology:aerodrome }
[]
aerodrome
Q619845
SYSTEM
Bern Airport
Q619845
(c(Q62447),P931,Q70)
action filter_type
action find_reverse
entity Q70
relation P931
type Q62447
[ANSWER] is served by that administrative territory
[{'concept': 'Q62447'}, 'P931', 'Q70']
SELECT DISTINCT ?q WHERE { ?q property:P931 resource:Q70 . ?q rdf:type ontology:Q62447 }
Bern Airport
Bern Airport is served by that administrative territory
Bern Airport
action filter_type
action find_reverse
entity Bern
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Bern']
SELECT DISTINCT ?q WHERE { ?q property:place_served_by_airport resource:Bern . ?q rdf:type ontology:aerodrome }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q619845 Q17072713 Q70
P931
Q56061
USER
Does Mazraeh-ye Baraftab and Bern serve Q619845 ?
(Q619845,P931,Q17072713) (Q619845,P931,Q70)
action is_in
entity Q619845
action intersection
action find_reverse
entity Q17072713
relation P931
action find_reverse
entity Q70
relation P931
['Q619845', 'P931', 'Q17072713'] ['Q619845', 'P931', 'Q70']
ASK WHERE { resource:Q619845 property:P931 resource:Q70 . resource:Q619845 property:P931 resource:Q17072713 }
Bern Airport Mazraeh-ye Baraftab Bern
action is_in
entity Bern Airport
action intersection
action find_reverse
entity Mazraeh-ye Baraftab
relation place served by airport
action find_reverse
entity Bern
relation place served by airport
['Bern Airport', 'place served by airport', 'Mazraeh-ye Baraftab'] ['Bern Airport', 'place served by airport', 'Bern']
ASK WHERE { resource:Bern_Airport property:place_served_by_airport resource:Bern . resource:Bern_Airport property:place_served_by_airport resource:Mazraeh-ye_Baraftab }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q619845,P931,Q17072713) (Q619845,P931,Q70)
action is_in
entity Q619845
action intersection
action find_reverse
entity Q17072713
relation P931
action find_reverse
entity Q70
relation P931
[ANSWER]
['Q619845', 'P931', 'Q17072713'] ['Q619845', 'P931', 'Q70']
ASK WHERE { resource:Q619845 property:P931 resource:Q70 . resource:Q619845 property:P931 resource:Q17072713 }
NO and YES respectively
action is_in
entity Bern Airport
action intersection
action find_reverse
entity Mazraeh-ye Baraftab
relation place served by airport
action find_reverse
entity Bern
relation place served by airport
['Bern Airport', 'place served by airport', 'Mazraeh-ye Baraftab'] ['Bern Airport', 'place served by airport', 'Bern']
ASK WHERE { resource:Bern_Airport property:place_served_by_airport resource:Bern . resource:Bern_Airport property:place_served_by_airport resource:Mazraeh-ye_Baraftab }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q70
P47
Q13220204
USER
Which administrative country subdivisions are next to the border of Bern ?
(c(Q13220204),P47,Q70)
action filter_type
action find
entity Q70
relation P47
type Q13220204
[{'concept': 'Q13220204'}, 'P47', 'Q70']
SELECT DISTINCT ?n WHERE { resource:Q70 property:P47 ?n . ?n rdf:type ontology:Q13220204 }
Bern
action filter_type
action find
entity Bern
relation shares border with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Bern']
SELECT DISTINCT ?n WHERE { resource:Bern property:shares_border_with ?n . ?n rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q69765 Q64058 Q66125
SYSTEM
Muri bei Bern, Köniz, Neuenegg
Q66125 Q69765 Q69675 Q69688 Q67613 Q67278 Q69682 Q69690 Q69680 Q64058 Q68185
(c(Q13220204),P47,Q70)
action filter_type
action find
entity Q70
relation P47
type Q13220204
[ANSWERS] are next to the border of Bern
[{'concept': 'Q13220204'}, 'P47', 'Q70']
SELECT DISTINCT ?n WHERE { resource:Q70 property:P47 ?n . ?n rdf:type ontology:Q13220204 }
Neuenegg Muri bei Bern Zollikofen Kirchlindach Wohlen bei Bern Mühleberg Ostermundigen Ittigen Frauenkappelen Köniz Bremgarten bei Bern
Muri bei Bern, Köniz and Neuenegg are next to the border of Bern
Muri bei Bern Köniz Neuenegg
action filter_type
action find
entity Bern
relation shares border with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Bern']
SELECT DISTINCT ?n WHERE { resource:Bern property:shares_border_with ?n . ?n rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q69765 Q64058 Q66125
P19
Q502895
USER
Who were born at Muri bei Bern, Köniz and Neuenegg ?
(c(Q502895),P19,Q69765) (c(Q502895),P19,Q64058) (c(Q502895),P19,Q66125)
action union
action filter_type
action find_reverse
entity Q69765
relation P19
type Q502895
action filter_type
action find_reverse
entity Q64058
relation P19
type Q502895
action filter_type
action find_reverse
entity Q66125
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q69765'] [{'concept': 'Q502895'}, 'P19', 'Q64058'] [{'concept': 'Q502895'}, 'P19', 'Q66125']
SELECT DISTINCT ?s WHERE { { ?s property:P19 resource:Q69765 . ?s rdf:type ontology:Q502895 } UNION { ?s property:P19 resource:Q64058 . ?s rdf:type ontology:Q502895 } }
Muri bei Bern Köniz Neuenegg
action union
action filter_type
action find_reverse
entity Muri bei Bern
relation place of birth
type common name
action filter_type
action find_reverse
entity Köniz
relation place of birth
type common name
action filter_type
action find_reverse
entity Neuenegg
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Muri bei Bern'] [{'concept': 'common name'}, 'place of birth', 'Köniz'] [{'concept': 'common name'}, 'place of birth', 'Neuenegg']
SELECT DISTINCT ?s WHERE { { ?s property:place_of_birth resource:Muri_bei_Bern . ?s rdf:type ontology:common_name } UNION { ?s property:place_of_birth resource:Köniz . ?s rdf:type ontology:common_name } }
[]
common name
Q1893943 Q1581556 Q2337821
SYSTEM
Marco Streit, Hans Oprecht, Stefan Tschannen
Q151692 Q1082401 Q1581556 Q1741835 Q122471 Q2337821 Q1893943 Q117646 Q2562561 Q4954826 Q1448185
(c(Q502895),P19,Q69765) (c(Q502895),P19,Q64058) (c(Q502895),P19,Q66125)
action union
action filter_type
action find_reverse
entity Q69765
relation P19
type Q502895
action filter_type
action find_reverse
entity Q64058
relation P19
type Q502895
action filter_type
action find_reverse
entity Q66125
relation P19
type Q502895
[ANSWERS] were born at Muri bei Bern, Köniz and Neuenegg
[{'concept': 'Q502895'}, 'P19', 'Q69765'] [{'concept': 'Q502895'}, 'P19', 'Q64058'] [{'concept': 'Q502895'}, 'P19', 'Q66125']
SELECT DISTINCT ?s WHERE { { ?s property:P19 resource:Q69765 . ?s rdf:type ontology:Q502895 } UNION { ?s property:P19 resource:Q64058 . ?s rdf:type ontology:Q502895 } }
Ludwig Ferdinand Schmid Christian Wägli Hans Oprecht Werner Martignoni Linda Geiser Stefan Tschannen Marco Streit Otto Rudolf Salvisberg Werner Schwarz Fortesa Hoti Franz Marschall
Marco Streit, Hans Oprecht and Stefan Tschannen were born at Muri bei Bern, Köniz and Neuenegg
Marco Streit Hans Oprecht Stefan Tschannen
action union
action filter_type
action find_reverse
entity Muri bei Bern
relation place of birth
type common name
action filter_type
action find_reverse
entity Köniz
relation place of birth
type common name
action filter_type
action find_reverse
entity Neuenegg
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Muri bei Bern'] [{'concept': 'common name'}, 'place of birth', 'Köniz'] [{'concept': 'common name'}, 'place of birth', 'Neuenegg']
SELECT DISTINCT ?s WHERE { { ?s property:place_of_birth resource:Muri_bei_Bern . ?s rdf:type ontology:common_name } UNION { ?s property:place_of_birth resource:Köniz . ?s rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1581556
P20
Q13220204
USER
Where did that person die ?
(Q1581556,P20,c(Q13220204))
action filter_type
action find
entity Q1581556
relation P20
type Q13220204
['Q1581556', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q13220204 . resource:Q1581556 property:P20 ?f }
Hans Oprecht
action filter_type
action find
entity Hans Oprecht
relation place of death
type second-level administrative country subdivision
['Hans Oprecht', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:second-level_administrative_country_subdivision . resource:Hans_Oprecht property:place_of_death ?f }
[]
second-level administrative country subdivision
Clarification for simple ques.
Q1581556
SYSTEM
Did you mean Hans Oprecht ?
Q1893943 Q1581556 Q2337821
(Q1893943,P20,c(Q13220204)) (Q1581556,P20,c(Q13220204)) (Q2337821,P20,c(Q13220204))
[ANSWER]
['Q1893943', 'P20', {'concept': 'Q13220204'}] ['Q1581556', 'P20', {'concept': 'Q13220204'}] ['Q2337821', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q13220204 . resource:Q1581556 property:P20 ?f }
Marco Streit Hans Oprecht Stefan Tschannen
Did you mean Hans Oprecht ?
Hans Oprecht
['Marco Streit', 'place of death', {'concept': 'second-level administrative country subdivision'}] ['Hans Oprecht', 'place of death', {'concept': 'second-level administrative country subdivision'}] ['Stefan Tschannen', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:second-level_administrative_country_subdivision . resource:Hans_Oprecht property:place_of_death ?f }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1581556,P20,c(Q13220204))
['Q1581556', 'P20', {'concept': 'Q13220204'}]
['Hans Oprecht', 'place of death', {'concept': 'second-level administrative country subdivision'}]
[]
Q65877
SYSTEM
Embrach
Q65877
(Q1581556,P20,c(Q13220204))
action filter_type
action find
entity Q1581556
relation P20
type Q13220204
That person died at [ANSWER]
['Q1581556', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q13220204 . resource:Q1581556 property:P20 ?f }
Embrach
That person died at Embrach
Embrach
action filter_type
action find
entity Hans Oprecht
relation place of death
type second-level administrative country subdivision
['Hans Oprecht', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:second-level_administrative_country_subdivision . resource:Hans_Oprecht property:place_of_death ?f }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q65877 Q4174959
P17
Q15617994
USER
Does that administrative country subdivision belong to Yeliseyevichi ?
(Q65877,P17,Q4174959)
action is_in
entity Q4174959
action find
entity Q65877
relation P17
['Q65877', 'P17', 'Q4174959']
ASK WHERE { resource:Q65877 property:P17 resource:Q4174959 }
Embrach Yeliseyevichi
action is_in
entity Yeliseyevichi
action find
entity Embrach
relation country
['Embrach', 'country', 'Yeliseyevichi']
ASK WHERE { resource:Embrach property:country resource:Yeliseyevichi }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q65877,P17,Q4174959)
action is_in
entity Q4174959
action find
entity Q65877
relation P17
[ANSWER]
['Q65877', 'P17', 'Q4174959']
ASK WHERE { resource:Q65877 property:P17 resource:Q4174959 }
No
action is_in
entity Yeliseyevichi
action find
entity Embrach
relation country
['Embrach', 'country', 'Yeliseyevichi']
ASK WHERE { resource:Embrach property:country resource:Yeliseyevichi }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5649233 Q17072713
P27 P17
Q15617994
USER
Which administrative territories are Mazraeh-ye Baraftab present in or are the native countriesof Manuel Polo y Peyrolón ?
OR((Q17072713,P17,c(Q15617994)), (Q5649233,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q17072713
relation P17
action find
entity Q5649233
relation P27
type Q15617994
{'OR': [['Q17072713', 'P17', {'concept': 'Q15617994'}], ['Q5649233', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5649233 property:P27 ?s } UNION { resource:Q17072713 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Manuel Polo y Peyrolón Mazraeh-ye Baraftab
action filter_type
action union
action find
entity Mazraeh-ye Baraftab
relation country
action find
entity Manuel Polo y Peyrolón
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mazraeh-ye Baraftab', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Manuel Polo y Peyrolón', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Manuel_Polo_y_Peyrolón property:country_of_citizenship ?s } UNION { resource:Mazraeh-ye_Baraftab property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q794
SYSTEM
Spain, Iran
Q29 Q794
OR((Q17072713,P17,c(Q15617994)), (Q5649233,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q17072713
relation P17
action find
entity Q5649233
relation P27
type Q15617994
[ANSWERS] are Mazraeh-ye Baraftab present in or are the native countriesof Manuel Polo y Peyrolón
{'OR': [['Q17072713', 'P17', {'concept': 'Q15617994'}], ['Q5649233', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5649233 property:P27 ?s } UNION { resource:Q17072713 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Spain Iran
Spain and Iran are Mazraeh-ye Baraftab present in or are the native countriesof Manuel Polo y Peyrolón
Spain Iran
action filter_type
action union
action find
entity Mazraeh-ye Baraftab
relation country
action find
entity Manuel Polo y Peyrolón
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mazraeh-ye Baraftab', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Manuel Polo y Peyrolón', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Manuel_Polo_y_Peyrolón property:country_of_citizenship ?s } UNION { resource:Mazraeh-ye_Baraftab property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q468657
P27
Q502895
USER
Are Irán Eory a citizen of those administrative territories ?
(Q468657,P27,Q29) (Q468657,P27,Q794)
action is_in
entity prev_answer
action find
entity Q468657
relation P27
['Q468657', 'P27', 'Q29'] ['Q468657', 'P27', 'Q794']
ASK WHERE { VALUES ( ?w ) { ( resource:Q29 ) ( resource:Q794 ) } . resource:Q468657 property:P27 ?w }
Irán Eory
action is_in
entity prev_answer
action find
entity Irán Eory
relation country of citizenship
['Irán Eory', 'country of citizenship', 'Spain'] ['Irán Eory', 'country of citizenship', 'Iran']
ASK WHERE { VALUES ( ?w ) { ( resource:Spain ) ( resource:Iran ) } . resource:Irán_Eory property:country_of_citizenship ?w }
[]
common name
SYSTEM
YES
(Q468657,P27,Q29) (Q468657,P27,Q794)
action is_in
entity prev_answer
action find
entity Q468657
relation P27
[ANSWER]
['Q468657', 'P27', 'Q29'] ['Q468657', 'P27', 'Q794']
ASK WHERE { VALUES ( ?w ) { ( resource:Q29 ) ( resource:Q794 ) } . resource:Q468657 property:P27 ?w }
Yes
action is_in
entity prev_answer
action find
entity Irán Eory
relation country of citizenship
['Irán Eory', 'country of citizenship', 'Spain'] ['Irán Eory', 'country of citizenship', 'Iran']
ASK WHERE { VALUES ( ?w ) { ( resource:Spain ) ( resource:Iran ) } . resource:Irán_Eory property:country_of_citizenship ?w }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q794 Q7169765 Q4786428
P35
Q502895
USER
Did Iran elect Perry Danos and Archibald McAllister as its head of state ?
(Q794,P35,Q7169765) (Q794,P35,Q4786428)
action is_in
entity Q794
action intersection
action find_reverse
entity Q7169765
relation P35
action find_reverse
entity Q4786428
relation P35
['Q794', 'P35', 'Q7169765'] ['Q794', 'P35', 'Q4786428']
ASK WHERE { resource:Q794 property:P35 resource:Q7169765 . resource:Q794 property:P35 resource:Q4786428 }
Iran Perry Danos Archibald McAllister
action is_in
entity Iran
action intersection
action find_reverse
entity Perry Danos
relation head of state
action find_reverse
entity Archibald McAllister
relation head of state
['Iran', 'head of state', 'Perry Danos'] ['Iran', 'head of state', 'Archibald McAllister']
ASK WHERE { resource:Iran property:head_of_state resource:Perry_Danos . resource:Iran property:head_of_state resource:Archibald_McAllister }
[]
common name
SYSTEM
NO
(Q794,P35,Q7169765) (Q794,P35,Q4786428)
action is_in
entity Q794
action intersection
action find_reverse
entity Q7169765
relation P35
action find_reverse
entity Q4786428
relation P35
[ANSWER]
['Q794', 'P35', 'Q7169765'] ['Q794', 'P35', 'Q4786428']
ASK WHERE { resource:Q794 property:P35 resource:Q7169765 . resource:Q794 property:P35 resource:Q4786428 }
No
action is_in
entity Iran
action intersection
action find_reverse
entity Perry Danos
relation head of state
action find_reverse
entity Archibald McAllister
relation head of state
['Iran', 'head of state', 'Perry Danos'] ['Iran', 'head of state', 'Archibald McAllister']
ASK WHERE { resource:Iran property:head_of_state resource:Perry_Danos . resource:Iran property:head_of_state resource:Archibald_McAllister }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q794
P495
Q19861951 Q17519152
USER
How many types of food or dish or groups of objects are Iran a country of origin of ?
(c(Q19861951),P495,Q794) (c(Q17519152),P495,Q794)
action count
action union
action filter_type
action find_reverse
entity Q794
relation P495
type Q19861951
action filter_type
action find_reverse
entity Q794
relation P495
type Q17519152
[{'concept': 'Q19861951'}, 'P495', 'Q794'] [{'concept': 'Q17519152'}, 'P495', 'Q794']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { ?j property:P495 resource:Q794 . ?j rdf:type ontology:Q19861951 } UNION { ?j property:P495 resource:Q794 . ?j rdf:type ontology:Q17519152 } }
Iran
action count
action union
action filter_type
action find_reverse
entity Iran
relation country of origin
type type of food or dish
action filter_type
action find_reverse
entity Iran
relation country of origin
type group of objects
[{'concept': 'type of food or dish'}, 'country of origin', 'Iran'] [{'concept': 'group of objects'}, 'country of origin', 'Iran']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { ?j property:country_of_origin resource:Iran . ?j rdf:type ontology:type_of_food_or_dish } UNION { ?j property:country_of_origin resource:Iran . ?j rdf:type ontology:group_of_objects } }
[]
type of food or dish group of objects
SYSTEM
4
Q2293551 Q608979 Q2918628 Q5696815
(c(Q19861951),P495,Q794) (c(Q17519152),P495,Q794)
action count
action union
action filter_type
action find_reverse
entity Q794
relation P495
type Q19861951
action filter_type
action find_reverse
entity Q794
relation P495
type Q17519152
[ANSWER]
[{'concept': 'Q19861951'}, 'P495', 'Q794'] [{'concept': 'Q17519152'}, 'P495', 'Q794']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { ?j property:P495 resource:Q794 . ?j rdf:type ontology:Q19861951 } UNION { ?j property:P495 resource:Q794 . ?j rdf:type ontology:Q17519152 } }
Sabzi polo Fesenjān Toophan Baghala ghatogh
4
action count
action union
action filter_type
action find_reverse
entity Iran
relation country of origin
type type of food or dish
action filter_type
action find_reverse
entity Iran
relation country of origin
type group of objects
[{'concept': 'type of food or dish'}, 'country of origin', 'Iran'] [{'concept': 'group of objects'}, 'country of origin', 'Iran']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { ?j property:country_of_origin resource:Iran . ?j rdf:type ontology:type_of_food_or_dish } UNION { ?j property:country_of_origin resource:Iran . ?j rdf:type ontology:group_of_objects } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q794
P941
Q3895768
USER
Which fictional location was that administrative territory a source of inspiration for ?
action filter_type
action find_reverse
entity Q794
relation P941
type Q3895768
SELECT DISTINCT ?j WHERE { ?j property:P941 resource:Q794 . ?j rdf:type ontology:Q3895768 }
Iran
action filter_type
action find_reverse
entity Iran
relation inspired by
type fictional location
SELECT DISTINCT ?j WHERE { ?j property:inspired_by resource:Iran . ?j rdf:type ontology:fictional_location }
[]
fictional location
Q20826262
SYSTEM
Iranistan
Q20826262
action filter_type
action find_reverse
entity Q794
relation P941
type Q3895768
[ANSWER] was that administrative territory a source of inspiration for
SELECT DISTINCT ?j WHERE { ?j property:P941 resource:Q794 . ?j rdf:type ontology:Q3895768 }
Iranistan
Iranistan was that administrative territory a source of inspiration for
Iranistan
action filter_type
action find_reverse
entity Iran
relation inspired by
type fictional location
SELECT DISTINCT ?j WHERE { ?j property:inspired_by resource:Iran . ?j rdf:type ontology:fictional_location }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q794
P710
Q180684
USER
Which conflicts did that administrative territory participate in ?
(c(Q180684),P710,Q20826262)
action filter_type
action find_reverse
entity Q794
relation P710
type Q180684
[{'concept': 'Q180684'}, 'P710', 'Q20826262']
SELECT DISTINCT ?q WHERE { ?q property:P710 resource:Q794 . ?q rdf:type ontology:Q180684 }
Iran
action filter_type
action find_reverse
entity Iran
relation participant
type conflict
[{'concept': 'conflict'}, 'participant', 'Iranistan']
SELECT DISTINCT ?q WHERE { ?q property:participant resource:Iran . ?q rdf:type ontology:conflict }
[]
conflict
Q26998563 Q21190371
SYSTEM
Aleppo offensive (September–October 2016), Aleppo offensive (October–December 2015)
Q26998563 Q21190371
(c(Q180684),P710,Q20826262)
action filter_type
action find_reverse
entity Q794
relation P710
type Q180684
That administrative territory participated in [ANSWERS]
[{'concept': 'Q180684'}, 'P710', 'Q20826262']
SELECT DISTINCT ?q WHERE { ?q property:P710 resource:Q794 . ?q rdf:type ontology:Q180684 }
Aleppo offensive (September–October 2016) Aleppo offensive (October–December 2015)
That administrative territory participated in Aleppo offensive (September–October 2016) and Aleppo offensive (October–December 2015)
Aleppo offensive (September–October 2016) Aleppo offensive (October–December 2015)
action filter_type
action find_reverse
entity Iran
relation participant
type conflict
[{'concept': 'conflict'}, 'participant', 'Iranistan']
SELECT DISTINCT ?q WHERE { ?q property:participant resource:Iran . ?q rdf:type ontology:conflict }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q8676
P361
Q198 Q180684
USER
How many wars are more number of conflicts a component of than American Civil War ?
(c(Q180684),P361,c(Q198))
action count
action greater
action find_reverse_tuple_counts
relation P361
type Q198
type Q180684
action count
action filter_type
action find
entity Q8676
relation P361
type Q198
[{'concept': 'Q180684'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:P361 ?e . ?e rdf:type ontology:Q198 . ?a rdf:type ontology:Q180684 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { resource:Q8676 property:P361 ?y . ?y rdf:type ontology:Q198 } } . FILTER ( ?p > ?v ) }
American Civil War
action count
action greater
action find_reverse_tuple_counts
relation part of
type war
type conflict
action count
action filter_type
action find
entity American Civil War
relation part of
type war
[{'concept': 'conflict'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:part_of ?e . ?e rdf:type ontology:war . ?a rdf:type ontology:conflict } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { resource:American_Civil_War property:part_of ?y . ?y rdf:type ontology:war } } . FILTER ( ?p > ?v ) }
[]
war conflict
SYSTEM
14
Q795269 Q3778746 Q920894 Q362 Q18121212 Q361 Q1021160 Q17984356 Q178810 Q545449 Q17507684 Q179975 Q243620 Q79911
(c(Q180684),P361,c(Q198))
action count
action greater
action find_reverse_tuple_counts
relation P361
type Q198
type Q180684
action count
action filter_type
action find
entity Q8676
relation P361
type Q198
[ANSWER]
[{'concept': 'Q180684'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:P361 ?e . ?e rdf:type ontology:Q198 . ?a rdf:type ontology:Q180684 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { resource:Q8676 property:P361 ?y . ?y rdf:type ontology:Q198 } } . FILTER ( ?p > ?v ) }
Sierra Leone Civil War Sioux Wars First Italian War of Independence World War II American-led intervention in Syria World War I Armagnac–Burgundian Civil War Iraqi Civil War Syrian Civil War Iraq War military intervention against ISIL Chinese Civil War Somali Civil War Russian Civil War
14
action count
action greater
action find_reverse_tuple_counts
relation part of
type war
type conflict
action count
action filter_type
action find
entity American Civil War
relation part of
type war
[{'concept': 'conflict'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:part_of ?e . ?e rdf:type ontology:war . ?a rdf:type ontology:conflict } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { resource:American_Civil_War property:part_of ?y . ?y rdf:type ontology:war } } . FILTER ( ?p > ?v ) }
[]