Simple Question (Direct)
Simple Question
Q12036633
P19
Q56061
USER
Which administrative territory was Michael Keprt born in ?
(Q12036633,P19,c(Q56061))
action filter_type
action find
entity Q12036633
relation P19
type Q56061
['Q12036633', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q12036633 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Michael Keprt
action filter_type
action find
entity Michael Keprt
relation place of birth
type administrative territorial entity
['Michael Keprt', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Michael_Keprt property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q81137
SYSTEM
Olomouc
Q81137
(Q12036633,P19,c(Q56061))
action filter_type
action find
entity Q12036633
relation P19
type Q56061
Michael Keprt was born in [ANSWER]
['Q12036633', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q12036633 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Olomouc
Michael Keprt was born in Olomouc
Olomouc
action filter_type
action find
entity Michael Keprt
relation place of birth
type administrative territorial entity
['Michael Keprt', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Michael_Keprt property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q81137
P119
Q502895
USER
Who has that administrative territory as his/her tomb ?
(c(Q502895),P119,Q81137)
action filter_type
action find_reverse
entity Q81137
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q81137']
SELECT DISTINCT ?q WHERE { ?q property:P119 resource:Q81137 . ?q rdf:type ontology:Q502895 }
Olomouc
action filter_type
action find_reverse
entity Olomouc
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Olomouc']
SELECT DISTINCT ?q WHERE { ?q property:place_of_burial resource:Olomouc . ?q rdf:type ontology:common_name }
[]
common name
Q20799336
SYSTEM
Josef Vlček
Q20799336
(c(Q502895),P119,Q81137)
action filter_type
action find_reverse
entity Q81137
relation P119
type Q502895
[ANSWER] has that administrative territory as his/her tomb
[{'concept': 'Q502895'}, 'P119', 'Q81137']
SELECT DISTINCT ?q WHERE { ?q property:P119 resource:Q81137 . ?q rdf:type ontology:Q502895 }
Josef Vlček
Josef Vlček has that administrative territory as his/her tomb
Josef Vlček
action filter_type
action find_reverse
entity Olomouc
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Olomouc']
SELECT DISTINCT ?q WHERE { ?q property:place_of_burial resource:Olomouc . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q81137
P551
Q502895
USER
Which people have residence at Olomouc ?
(c(Q502895),P551,Q81137)
action filter_type
action find_reverse
entity Q81137
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q81137']
SELECT DISTINCT ?j WHERE { ?j property:P551 resource:Q81137 . ?j rdf:type ontology:Q502895 }
Olomouc
action filter_type
action find_reverse
entity Olomouc
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Olomouc']
SELECT DISTINCT ?j WHERE { ?j property:residence resource:Olomouc . ?j rdf:type ontology:common_name }
[]
common name
Q2125571 Q113741 Q942494
SYSTEM
Radek Drulák, Olga Taussky-Todd, Jan Hájek
Q942494 Q7820555 Q459917 Q2125571 Q113741
(c(Q502895),P551,Q81137)
action filter_type
action find_reverse
entity Q81137
relation P551
type Q502895
[ANSWERS] have residence at Olomouc
[{'concept': 'Q502895'}, 'P551', 'Q81137']
SELECT DISTINCT ?j WHERE { ?j property:P551 resource:Q81137 . ?j rdf:type ontology:Q502895 }
Jan Hájek Tomáš Anzari Eva Romanová Radek Drulák Olga Taussky-Todd
Radek Drulák, Olga Taussky-Todd and Jan Hájek have residence at Olomouc
Radek Drulák Olga Taussky-Todd Jan Hájek
action filter_type
action find_reverse
entity Olomouc
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Olomouc']
SELECT DISTINCT ?j WHERE { ?j property:residence resource:Olomouc . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q81137
P17
Q15617994
USER
Which administrative territory is that administrative territory situated in ?
(Q2125571,P17,c(Q15617994)) (Q113741,P17,c(Q15617994)) (Q942494,P17,c(Q15617994))
action filter_type
action find
entity Q81137
relation P17
type Q15617994
['Q2125571', 'P17', {'concept': 'Q15617994'}] ['Q113741', 'P17', {'concept': 'Q15617994'}] ['Q942494', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q81137 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Olomouc
action filter_type
action find
entity Olomouc
relation country
type designation for an administrative territorial entity
['Radek Drulák', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Olga Taussky-Todd', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Jan Hájek', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Olomouc property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213
SYSTEM
Czech Republic
Q213
(Q2125571,P17,c(Q15617994)) (Q113741,P17,c(Q15617994)) (Q942494,P17,c(Q15617994))
action filter_type
action find
entity Q81137
relation P17
type Q15617994
That administrative territory is situated in [ANSWER]
['Q2125571', 'P17', {'concept': 'Q15617994'}] ['Q113741', 'P17', {'concept': 'Q15617994'}] ['Q942494', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q81137 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Czech Republic
That administrative territory is situated in Czech Republic
Czech Republic
action filter_type
action find
entity Olomouc
relation country
type designation for an administrative territorial entity
['Radek Drulák', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Olga Taussky-Todd', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Jan Hájek', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Olomouc property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1532
Q1194951 Q502895
USER
How many national sports teams and people play for that administrative territory ?
(c(Q1194951),P1532,Q213) (c(Q502895),P1532,Q213) (c(Q1194951),P1532,Q213) (c(Q502895),P1532,Q213)
action count
action union
action filter_type
action find_reverse
entity Q213
relation P1532
type Q1194951
action filter_type
action find_reverse
entity Q213
relation P1532
type Q502895
[{'concept': 'Q1194951'}, 'P1532', 'Q213'] [{'concept': 'Q502895'}, 'P1532', 'Q213'] [{'concept': 'Q1194951'}, 'P1532', 'Q213'] [{'concept': 'Q502895'}, 'P1532', 'Q213']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ?g . VALUES ( ?g ) { ( ontology:Q1194951 ) ( ontology:Q502895 ) } }
action count
action union
action filter_type
action find_reverse
entity Czech Republic
relation country for sport
type national sports team
action filter_type
action find_reverse
entity Czech Republic
relation country for sport
type common name
[{'concept': 'national sports team'}, 'country for sport', 'Czech Republic'] [{'concept': 'common name'}, 'country for sport', 'Czech Republic'] [{'concept': 'national sports team'}, 'country for sport', 'Czech Republic'] [{'concept': 'common name'}, 'country for sport', 'Czech Republic']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ?g . VALUES ( ?g ) { ( ontology:national_sports_team ) ( ontology:common_name ) } }
[]
national sports team common name
SYSTEM
1 national sports teams and 4 people
Q483868 Q17275699 Q19630970 Q25933029 Q4767410
(c(Q1194951),P1532,Q213) (c(Q502895),P1532,Q213) (c(Q1194951),P1532,Q213) (c(Q502895),P1532,Q213)
action count
action union
action filter_type
action find_reverse
entity Q213
relation P1532
type Q1194951
action filter_type
action find_reverse
entity Q213
relation P1532
type Q502895
[ANSWER]
[{'concept': 'Q1194951'}, 'P1532', 'Q213'] [{'concept': 'Q502895'}, 'P1532', 'Q213'] [{'concept': 'Q1194951'}, 'P1532', 'Q213'] [{'concept': 'Q502895'}, 'P1532', 'Q213']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ?g . VALUES ( ?g ) { ( ontology:Q1194951 ) ( ontology:Q502895 ) } }
Czech Republic national football team Kristiina Mäki Patrik Šorm Lucie Koudelová Anna Pichrtová
1 national sports teams and 4 people
action count
action union
action filter_type
action find_reverse
entity Czech Republic
relation country for sport
type national sports team
action filter_type
action find_reverse
entity Czech Republic
relation country for sport
type common name
[{'concept': 'national sports team'}, 'country for sport', 'Czech Republic'] [{'concept': 'common name'}, 'country for sport', 'Czech Republic'] [{'concept': 'national sports team'}, 'country for sport', 'Czech Republic'] [{'concept': 'common name'}, 'country for sport', 'Czech Republic']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ?g . VALUES ( ?g ) { ( ontology:national_sports_team ) ( ontology:common_name ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with max number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?w ) { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?o ) WHERE { ?j property:P530 ?v . ?j rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?h ) WHERE { ?l property:P530 ?y . ?l rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?h = ?w ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?w ) { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?o ) WHERE { ?j property:diplomatic_relation ?v . ?j rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?h ) WHERE { ?l property:diplomatic_relation ?y . ?l rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?h = ?w ) }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic relations with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?w ) { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?o ) WHERE { ?j property:P530 ?v . ?j rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?h ) WHERE { ?l property:P530 ?y . ?l rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?h = ?w ) }
Germany
Germany have diplomatic relations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?w ) { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?o ) WHERE { ?j property:diplomatic_relation ?v . ?j rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?h ) WHERE { ?l property:diplomatic_relation ?y . ?l rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?h = ?w ) }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q183 Q8772404
P6
Q502895
USER
Is Germany the head of goverment of Eduardo Val ?
(Q183,P6,Q8772404)
action is_in
entity Q8772404
action find
entity Q183
relation P6
['Q183', 'P6', 'Q8772404']
ASK WHERE { resource:Q183 property:P6 resource:Q8772404 }
Germany Eduardo Val
action is_in
entity Eduardo Val
action find
entity Germany
relation head of government
['Germany', 'head of government', 'Eduardo Val']
ASK WHERE { resource:Germany property:head_of_government resource:Eduardo_Val }
[]
common name
SYSTEM
NO
(Q183,P6,Q8772404)
action is_in
entity Q8772404
action find
entity Q183
relation P6
[ANSWER]
['Q183', 'P6', 'Q8772404']
ASK WHERE { resource:Q183 property:P6 resource:Q8772404 }
No
action is_in
entity Eduardo Val
action find
entity Germany
relation head of government
['Germany', 'head of government', 'Eduardo Val']
ASK WHERE { resource:Germany property:head_of_government resource:Eduardo_Val }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q942494 Q506136
P27
Q15617994
USER
Is Waldhufen the country of citizenship of Jan Hájek ?
(Q942494,P27,Q506136)
action is_in
entity Q506136
action find
entity Q942494
relation P27
['Q942494', 'P27', 'Q506136']
ASK WHERE { resource:Q942494 property:P27 resource:Q506136 }
Jan Hájek Waldhufen
action is_in
entity Waldhufen
action find
entity Jan Hájek
relation country of citizenship
['Jan Hájek', 'country of citizenship', 'Waldhufen']
ASK WHERE { resource:Jan_Hájek property:country_of_citizenship resource:Waldhufen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q942494,P27,Q506136)
action is_in
entity Q506136
action find
entity Q942494
relation P27
[ANSWER]
['Q942494', 'P27', 'Q506136']
ASK WHERE { resource:Q942494 property:P27 resource:Q506136 }
No
action is_in
entity Waldhufen
action find
entity Jan Hájek
relation country of citizenship
['Jan Hájek', 'country of citizenship', 'Waldhufen']
ASK WHERE { resource:Jan_Hájek property:country_of_citizenship resource:Waldhufen }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P921
Q234460
USER
Which texts have Germany as their principal topic ?
(c(Q234460),P921,Q183)
action filter_type
action find_reverse
entity Q183
relation P921
type Q234460
[{'concept': 'Q234460'}, 'P921', 'Q183']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q234460 . ?b property:P921 resource:Q183 }
Germany
action filter_type
action find_reverse
entity Germany
relation main subject
type text
[{'concept': 'text'}, 'main subject', 'Germany']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:text . ?b property:main_subject resource:Germany }
[]
text
Q1203143 Q250125
SYSTEM
Listen, Germany!, Lotte in Weimar: The Beloved Returns
Q1203143 Q250125
(c(Q234460),P921,Q183)
action filter_type
action find_reverse
entity Q183
relation P921
type Q234460
[ANSWERS] have Germany as their principal topic
[{'concept': 'Q234460'}, 'P921', 'Q183']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q234460 . ?b property:P921 resource:Q183 }
Listen, Germany! Lotte in Weimar: The Beloved Returns
Listen, Germany! and Lotte in Weimar: The Beloved Returns have Germany as their principal topic
Listen, Germany! Lotte in Weimar: The Beloved Returns
action filter_type
action find_reverse
entity Germany
relation main subject
type text
[{'concept': 'text'}, 'main subject', 'Germany']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:text . ?b property:main_subject resource:Germany }
[]
Clarification
Simple Question|Single Entity|Indirect
Q250125
P144
Q838948
USER
Which work of art is adapted from that text ?
(c(Q838948),P144,Q250125)
action filter_type
action find_reverse
entity Q250125
relation P144
type Q838948
[{'concept': 'Q838948'}, 'P144', 'Q250125']
SELECT DISTINCT ?e WHERE { ?e property:P144 resource:Q250125 . ?e rdf:type ontology:Q838948 }
Lotte in Weimar: The Beloved Returns
action filter_type
action find_reverse
entity Lotte in Weimar: The Beloved Returns
relation based on
type work of art
[{'concept': 'work of art'}, 'based on', 'Lotte in Weimar: The Beloved Returns']
SELECT DISTINCT ?e WHERE { ?e property:based_on resource:Lotte_in_Weimar:_The_Beloved_Returns . ?e rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q1203143
SYSTEM
Did you mean Listen, Germany! ?
Q1203143 Q250125
(c(Q838948),P144,Q1203143) (c(Q838948),P144,Q250125)
[ANSWER]
[{'concept': 'Q838948'}, 'P144', 'Q1203143'] [{'concept': 'Q838948'}, 'P144', 'Q250125']
SELECT DISTINCT ?e WHERE { ?e property:P144 resource:Q250125 . ?e rdf:type ontology:Q838948 }
Listen, Germany! Lotte in Weimar: The Beloved Returns
Did you mean Listen, Germany! ?
Listen, Germany!
[{'concept': 'work of art'}, 'based on', 'Listen, Germany!'] [{'concept': 'work of art'}, 'based on', 'Lotte in Weimar: The Beloved Returns']
SELECT DISTINCT ?e WHERE { ?e property:based_on resource:Lotte_in_Weimar:_The_Beloved_Returns . ?e rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant Lotte in Weimar: The Beloved Returns. Could you tell me the answer for that?
(c(Q838948),P144,Q250125)
Q250125
[{'concept': 'Q838948'}, 'P144', 'Q250125']
[{'concept': 'work of art'}, 'based on', 'Lotte in Weimar: The Beloved Returns']
[]
Q428049
SYSTEM
Lotte in Weimar
Q428049
(c(Q838948),P144,Q250125)
action filter_type
action find_reverse
entity Q250125
relation P144
type Q838948
[ANSWER] is adapted from that text
[{'concept': 'Q838948'}, 'P144', 'Q250125']
SELECT DISTINCT ?e WHERE { ?e property:P144 resource:Q250125 . ?e rdf:type ontology:Q838948 }
Lotte in Weimar
Lotte in Weimar is adapted from that text
Lotte in Weimar
action filter_type
action find_reverse
entity Lotte in Weimar: The Beloved Returns
relation based on
type work of art
[{'concept': 'work of art'}, 'based on', 'Lotte in Weimar: The Beloved Returns']
SELECT DISTINCT ?e WHERE { ?e property:based_on resource:Lotte_in_Weimar:_The_Beloved_Returns . ?e rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q428049 Q13613 Q183
P495
Q1048835
USER
Does that work of art originates at Cornellà del Terri and Germany ?
(Q428049,P495,Q13613) (Q428049,P495,Q183)
action is_in
entity Q428049
action intersection
action find_reverse
entity Q13613
relation P495
action find_reverse
entity Q183
relation P495
['Q428049', 'P495', 'Q13613'] ['Q428049', 'P495', 'Q183']
ASK WHERE { resource:Q428049 property:P495 resource:Q13613 . resource:Q428049 property:P495 resource:Q183 }
Lotte in Weimar Cornellà del Terri Germany
action is_in
entity Lotte in Weimar
action intersection
action find_reverse
entity Cornellà del Terri
relation country of origin
action find_reverse
entity Germany
relation country of origin
['Lotte in Weimar', 'country of origin', 'Cornellà del Terri'] ['Lotte in Weimar', 'country of origin', 'Germany']
ASK WHERE { resource:Lotte_in_Weimar property:country_of_origin resource:Cornellà_del_Terri . resource:Lotte_in_Weimar property:country_of_origin resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q428049,P495,Q13613) (Q428049,P495,Q183)
action is_in
entity Q428049
action intersection
action find_reverse
entity Q13613
relation P495
action find_reverse
entity Q183
relation P495
[ANSWER]
['Q428049', 'P495', 'Q13613'] ['Q428049', 'P495', 'Q183']
ASK WHERE { resource:Q428049 property:P495 resource:Q13613 . resource:Q428049 property:P495 resource:Q183 }
NO and YES respectively
action is_in
entity Lotte in Weimar
action intersection
action find_reverse
entity Cornellà del Terri
relation country of origin
action find_reverse
entity Germany
relation country of origin
['Lotte in Weimar', 'country of origin', 'Cornellà del Terri'] ['Lotte in Weimar', 'country of origin', 'Germany']
ASK WHERE { resource:Lotte_in_Weimar property:country_of_origin resource:Cornellà_del_Terri . resource:Lotte_in_Weimar property:country_of_origin resource:Germany }
[]