Simple Question (Direct)
Simple Question
Q5285595
P641
Q349
USER
What did Dmitri Shestakov participate in ?
(Q5285595,P641,c(Q349))
action filter_type
action find
entity Q5285595
relation P641
type Q349
['Q5285595', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q349 . resource:Q5285595 property:P641 ?o }
Dmitri Shestakov
action filter_type
action find
entity Dmitri Shestakov
relation sport
type sport
['Dmitri Shestakov', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sport . resource:Dmitri_Shestakov property:sport ?o }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5285595,P641,c(Q349))
action filter_type
action find
entity Q5285595
relation P641
type Q349
Dmitri Shestakov participated in [ANSWER]
['Q5285595', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q349 . resource:Q5285595 property:P641 ?o }
association football
Dmitri Shestakov participated in association football
association football
action filter_type
action find
entity Dmitri Shestakov
relation sport
type sport
['Dmitri Shestakov', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sport . resource:Dmitri_Shestakov property:sport ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5285595
P19
Q56061
USER
Where was Dmitri Shestakov born ?
(Q5285595,P19,c(Q56061))
action filter_type
action find
entity Q5285595
relation P19
type Q56061
['Q5285595', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q5285595 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Dmitri Shestakov
action filter_type
action find
entity Dmitri Shestakov
relation place of birth
type administrative territorial entity
['Dmitri Shestakov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Dmitri_Shestakov property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q5285595,P19,c(Q56061))
action filter_type
action find
entity Q5285595
relation P19
type Q56061
Dmitri Shestakov was born in [ANSWER]
['Q5285595', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q5285595 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Moscow
Dmitri Shestakov was born in Moscow
Moscow
action filter_type
action find
entity Dmitri Shestakov
relation place of birth
type administrative territorial entity
['Dmitri Shestakov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Dmitri_Shestakov property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q649
P206
Q355304
USER
Which watercourse is situated nearby that administrative territory ?
(Q649,P206,c(Q355304))
action filter_type
action find
entity Q649
relation P206
type Q355304
['Q649', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q355304 . resource:Q649 property:P206 ?g }
Moscow
action filter_type
action find
entity Moscow
relation located next to body of water
type watercourse
['Moscow', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:watercourse . resource:Moscow property:located_next_to_body_of_water ?g }
[]
watercourse
Q175117
SYSTEM
Moskva River
Q175117
(Q649,P206,c(Q355304))
action filter_type
action find
entity Q649
relation P206
type Q355304
[ANSWER] is situated nearby that administrative territory
['Q649', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q355304 . resource:Q649 property:P206 ?g }
Moskva River
Moskva River is situated nearby that administrative territory
Moskva River
action filter_type
action find
entity Moscow
relation located next to body of water
type watercourse
['Moscow', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:watercourse . resource:Moscow property:located_next_to_body_of_water ?g }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P206
Q355304 Q33837
USER
How many watercourses are situated close to less number of archipelagos than that watercourse ?
(c(Q33837),P206,c(Q355304))
action count
action less
action find_tuple_counts
relation P206
type Q355304
type Q33837
action count
action filter_type
action find
entity Q175117
relation P206
type Q355304
[{'concept': 'Q33837'}, 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Q175117 property:P206 ?a . ?a rdf:type ontology:Q355304 } } . FILTER ( ?o < ?l ) . { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:Q33837 . ?j rdf:type ontology:Q355304 . ?j property:P206 ?c } GROUP BY ?j } }
action count
action less
action find_tuple_counts
relation located next to body of water
type watercourse
type archipelago
action count
action filter_type
action find
entity Moskva River
relation located next to body of water
type watercourse
[{'concept': 'archipelago'}, 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Moskva_River property:located_next_to_body_of_water ?a . ?a rdf:type ontology:watercourse } } . FILTER ( ?o < ?l ) . { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:archipelago . ?j rdf:type ontology:watercourse . ?j property:located_next_to_body_of_water ?c } GROUP BY ?j } }
[]
watercourse archipelago
SYSTEM
0
(c(Q33837),P206,c(Q355304))
action count
action less
action find_tuple_counts
relation P206
type Q355304
type Q33837
action count
action filter_type
action find
entity Q175117
relation P206
type Q355304
[ANSWER]
[{'concept': 'Q33837'}, 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Q175117 property:P206 ?a . ?a rdf:type ontology:Q355304 } } . FILTER ( ?o < ?l ) . { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:Q33837 . ?j rdf:type ontology:Q355304 . ?j property:P206 ?c } GROUP BY ?j } }
0
action count
action less
action find_tuple_counts
relation located next to body of water
type watercourse
type archipelago
action count
action filter_type
action find
entity Moskva River
relation located next to body of water
type watercourse
[{'concept': 'archipelago'}, 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Moskva_River property:located_next_to_body_of_water ?a . ?a rdf:type ontology:watercourse } } . FILTER ( ?o < ?l ) . { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:archipelago . ?j rdf:type ontology:watercourse . ?j property:located_next_to_body_of_water ?c } GROUP BY ?j } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q775324 Q175117
P27 P17
Q15617994
USER
Which administrative territories are Moskva River present in or are Domenico Dolce an inhabitant of ?
OR((Q175117,P17,c(Q15617994)), (Q775324,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q175117
relation P17
action find
entity Q775324
relation P27
type Q15617994
{'OR': [['Q175117', 'P17', {'concept': 'Q15617994'}], ['Q775324', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q175117 property:P17 ?t } UNION { resource:Q775324 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
Domenico Dolce Moskva River
action filter_type
action union
action find
entity Moskva River
relation country
action find
entity Domenico Dolce
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Moskva River', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Domenico Dolce', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Moskva_River property:country ?t } UNION { resource:Domenico_Dolce property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q159
SYSTEM
Italy, Russia
Q38 Q159
OR((Q175117,P17,c(Q15617994)), (Q775324,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q175117
relation P17
action find
entity Q775324
relation P27
type Q15617994
Moskva River are from [ANSWERS] or are Domenico Dolce an inhabitant of
{'OR': [['Q175117', 'P17', {'concept': 'Q15617994'}], ['Q775324', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q175117 property:P17 ?t } UNION { resource:Q775324 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
Italy Russia
Moskva River are from Italy and Russia or are Domenico Dolce an inhabitant of
Italy Russia
action filter_type
action union
action find
entity Moskva River
relation country
action find
entity Domenico Dolce
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Moskva River', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Domenico Dolce', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Moskva_River property:country ?t } UNION { resource:Domenico_Dolce property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q15617994
USER
How many administrative territories have diplomatic relations with that administrative territory ?
(Q159,P530,c(Q15617994))
['Q159', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24058892 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Russia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q159
SYSTEM
Did you mean Russia ?
(Q38,P530,c(Q15617994)) (Q159,P530,c(Q15617994))
[ANSWER]
['Q38', 'P530', {'concept': 'Q15617994'}] ['Q159', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24058892 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Russia ?
Russia
['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Russia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q159,P530,c(Q15617994))
['Q159', 'P530', {'concept': 'Q15617994'}]
['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
19
Q805 Q801 Q241 Q668 Q414 Q142 Q148 Q17 Q30 Q79 Q38 Q711 Q717 Q1011 Q403 Q43 Q155 Q953 Q881
(Q159,P530,c(Q15617994))
[ANSWER]
['Q159', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24058892 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Yemen Israel Cuba India Argentina France People's Republic of China Japan United States of America Egypt Italy Mongolia Venezuela Cape Verde Serbia Turkey Brazil Zambia Vietnam
19
['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Russia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q218
P6
Q502895
USER
What people are Romania the head of goverment of ?
(Q218,P6,c(Q502895))
action filter_type
action find
entity Q218
relation P6
type Q502895
['Q218', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q218 property:P6 ?c . ?c rdf:type ontology:Q502895 }
Romania
action filter_type
action find
entity Romania
relation head of government
type common name
['Romania', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Romania property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]
common name
Q357004 Q271966 Q255022
SYSTEM
Radu Vasile, Adrian Năstase, Mugur Isărescu
Q57692 Q370856 Q357004 Q929248 Q267857 Q316823 Q255022 Q207473 Q271966 Q126671 Q126660 Q152362
(Q218,P6,c(Q502895))
action filter_type
action find
entity Q218
relation P6
type Q502895
[ANSWERS] are Romania the head of goverment of
['Q218', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q218 property:P6 ?c . ?c rdf:type ontology:Q502895 }
Victor Ponta Victor Ciorbea Radu Vasile Dacian Cioloş Emil Boc Petre Roman Mugur Isărescu Călin Popescu-Tăriceanu Adrian Năstase Nicolae Văcăroiu Theodor Stolojan Mihai Răzvan Ungureanu
Radu Vasile, Adrian Năstase and Mugur Isărescu are Romania the head of goverment of
Radu Vasile Adrian Năstase Mugur Isărescu
action filter_type
action find
entity Romania
relation head of government
type common name
['Romania', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Romania property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1767446
Q502895
USER
And also tell me about Vistabella del Maestrazgo?
(Q1767446,P6,c(Q502895))
action filter_type
action find
entity Q1767446
relation P6
type Q502895
['Q1767446', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q1767446 property:P6 ?h . ?h rdf:type ontology:Q502895 }
Vistabella del Maestrazgo
action filter_type
action find
entity Vistabella del Maestrazgo
relation head of government
type common name
['Vistabella del Maestrazgo', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Vistabella_del_Maestrazgo property:head_of_government ?h . ?h rdf:type ontology:common_name }
[]
common name
Q14067012
SYSTEM
Belen Bachero Traver
Q14067012
(Q1767446,P6,c(Q502895))
action filter_type
action find
entity Q1767446
relation P6
type Q502895
[ANSWER]
['Q1767446', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q1767446 property:P6 ?h . ?h rdf:type ontology:Q502895 }
Belen Bachero Traver
Belen Bachero Traver
action filter_type
action find
entity Vistabella del Maestrazgo
relation head of government
type common name
['Vistabella del Maestrazgo', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Vistabella_del_Maestrazgo property:head_of_government ?h . ?h rdf:type ontology:common_name }
[]