Simple Question (Direct)
Simple Question
Q18603797
P19
Q56061
USER
Where was Dávid Ivan born ?
(Q18603797,P19,c(Q56061))
action filter_type
action find
entity Q18603797
relation P19
type Q56061
['Q18603797', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q18603797 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Dávid Ivan
action filter_type
action find
entity Dávid Ivan
relation place of birth
type administrative territorial entity
['Dávid Ivan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Dávid_Ivan property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1780
SYSTEM
Bratislava
Q1780
(Q18603797,P19,c(Q56061))
action filter_type
action find
entity Q18603797
relation P19
type Q56061
Dávid Ivan was born in [ANSWER]
['Q18603797', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q18603797 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Bratislava
Dávid Ivan was born in Bratislava
Bratislava
action filter_type
action find
entity Dávid Ivan
relation place of birth
type administrative territorial entity
['Dávid Ivan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Dávid_Ivan property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18603797
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q1780,P27,c(Q15617994))
action filter_type
action find
entity Q18603797
relation P27
type Q15617994
['Q1780', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q18603797 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Dávid Ivan
action filter_type
action find
entity Dávid Ivan
relation country of citizenship
type designation for an administrative territorial entity
['Bratislava', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Dávid_Ivan property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q214
SYSTEM
Slovakia
Q214
(Q1780,P27,c(Q15617994))
action filter_type
action find
entity Q18603797
relation P27
type Q15617994
[ANSWER] is the native country of that person
['Q1780', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q18603797 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Slovakia
Slovakia is the native country of that person
Slovakia
action filter_type
action find
entity Dávid Ivan
relation country of citizenship
type designation for an administrative territorial entity
['Bratislava', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Dávid_Ivan property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q214 Q212 Q28
P47
Q15617994
USER
Is Slovakia bordered by Ukraine and Hungary ?
(Q214,P47,Q212) (Q214,P47,Q28)
action is_in
entity Q214
action intersection
action find_reverse
entity Q212
relation P47
action find_reverse
entity Q28
relation P47
['Q214', 'P47', 'Q212'] ['Q214', 'P47', 'Q28']
ASK WHERE { resource:Q214 property:P47 resource:Q212 . resource:Q214 property:P47 resource:Q28 }
Slovakia Ukraine Hungary
action is_in
entity Slovakia
action intersection
action find_reverse
entity Ukraine
relation shares border with
action find_reverse
entity Hungary
relation shares border with
['Slovakia', 'shares border with', 'Ukraine'] ['Slovakia', 'shares border with', 'Hungary']
ASK WHERE { resource:Slovakia property:shares_border_with resource:Ukraine . resource:Slovakia property:shares_border_with resource:Hungary }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q214,P47,Q212) (Q214,P47,Q28)
action is_in
entity Q214
action intersection
action find_reverse
entity Q212
relation P47
action find_reverse
entity Q28
relation P47
[ANSWER]
['Q214', 'P47', 'Q212'] ['Q214', 'P47', 'Q28']
ASK WHERE { resource:Q214 property:P47 resource:Q212 . resource:Q214 property:P47 resource:Q28 }
Yes
action is_in
entity Slovakia
action intersection
action find_reverse
entity Ukraine
relation shares border with
action find_reverse
entity Hungary
relation shares border with
['Slovakia', 'shares border with', 'Ukraine'] ['Slovakia', 'shares border with', 'Hungary']
ASK WHERE { resource:Slovakia property:shares_border_with resource:Ukraine . resource:Slovakia property:shares_border_with resource:Hungary }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q214
P35
Q502895
USER
Which people have the highest formal authority in Slovakia ?
action filter_type
action find
entity Q214
relation P35
type Q502895
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q214 property:P35 ?a }
Slovakia
action filter_type
action find
entity Slovakia
relation head of state
type common name
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Slovakia property:head_of_state ?a }
[]
common name
Q356990 Q57295 Q163813
SYSTEM
Michal Kováč, Ivan Gašparovič, Rudolf Schuster
Q57295 Q163813 Q12762303 Q356990
action filter_type
action find
entity Q214
relation P35
type Q502895
[ANSWERS] have the highest formal authority in Slovakia
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q214 property:P35 ?a }
Ivan Gašparovič Rudolf Schuster Andrej Kiska Michal Kováč
Michal Kováč, Ivan Gašparovič and Rudolf Schuster have the highest formal authority in Slovakia
Michal Kováč Ivan Gašparovič Rudolf Schuster
action filter_type
action find
entity Slovakia
relation head of state
type common name
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Slovakia property:head_of_state ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1780
P1376
Q7275
USER
Which states have Bratislava have their first city ?
(Q1780,P1376,c(Q7275))
action filter_type
action find
entity Q1780
relation P1376
type Q7275
['Q1780', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { resource:Q1780 property:P1376 ?a . ?a rdf:type ontology:Q7275 }
Bratislava
action filter_type
action find
entity Bratislava
relation capital of
type state
['Bratislava', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { resource:Bratislava property:capital_of ?a . ?a rdf:type ontology:state }
[]
state
Q171150 Q1751495
SYSTEM
Kingdom of Hungary, Slovak Socialist Republic
Q171150 Q1751495
(Q1780,P1376,c(Q7275))
action filter_type
action find
entity Q1780
relation P1376
type Q7275
The [ANSWERS] have Bratislava have their first city
['Q1780', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { resource:Q1780 property:P1376 ?a . ?a rdf:type ontology:Q7275 }
Kingdom of Hungary Slovak Socialist Republic
The Kingdom of Hungary and Slovak Socialist Republic have Bratislava have their first city
Kingdom of Hungary Slovak Socialist Republic
action filter_type
action find
entity Bratislava
relation capital of
type state
['Bratislava', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { resource:Bratislava property:capital_of ?a . ?a rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q171150 Q1751495
P1376
Q56061
USER
Which administrative territories are the county seat for those states ?
(c(Q56061),P1376,Q171150) (c(Q56061),P1376,Q1751495)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q171150'] [{'concept': 'Q56061'}, 'P1376', 'Q1751495']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . VALUES ( ?g ) { ( resource:Q171150 ) ( resource:Q1751495 ) } . ?l property:P1376 ?g }
Kingdom of Hungary Slovak Socialist Republic
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Kingdom of Hungary'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Slovak Socialist Republic']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . VALUES ( ?g ) { ( resource:Kingdom_of_Hungary ) ( resource:Slovak_Socialist_Republic ) } . ?l property:capital_of ?g }
[]
administrative territorial entity
Q1781 Q1780 Q1780
SYSTEM
Bratislava for 2nd, 3rd, Budapest for 1st
Q1780 Q1781 Q193478 Q1780
(c(Q56061),P1376,Q171150) (c(Q56061),P1376,Q1751495)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P1376', 'Q171150'] [{'concept': 'Q56061'}, 'P1376', 'Q1751495']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . VALUES ( ?g ) { ( resource:Q171150 ) ( resource:Q1751495 ) } . ?l property:P1376 ?g }
Bratislava Budapest Buda Bratislava
Budapest, Bratislava and Bratislava are the county seat for those states
Budapest Bratislava Bratislava
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Kingdom of Hungary'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Slovak Socialist Republic']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . VALUES ( ?g ) { ( resource:Kingdom_of_Hungary ) ( resource:Slovak_Socialist_Republic ) } . ?l property:capital_of ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q214
P610
Q14524493
USER
What is the highest point of Slovakia ?
(Q214,P610,c(Q14524493))
action filter_type
action find
entity Q214
relation P610
type Q14524493
['Q214', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q14524493 . resource:Q214 property:P610 ?z }
Slovakia
action filter_type
action find
entity Slovakia
relation highest point
type terrain
['Slovakia', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:terrain . resource:Slovakia property:highest_point ?z }
[]
terrain
Q81213
SYSTEM
Gerlachovský štít
Q81213
(Q214,P610,c(Q14524493))
action filter_type
action find
entity Q214
relation P610
type Q14524493
The highest point of Slovakia is the [ANSWER]
['Q214', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q14524493 . resource:Q214 property:P610 ?z }
Gerlachovský štít
The highest point of Slovakia is the Gerlachovský štít
Gerlachovský štít
action filter_type
action find
entity Slovakia
relation highest point
type terrain
['Slovakia', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:terrain . resource:Slovakia property:highest_point ?z }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q3921762 Q18603797
P641
Q349
USER
Which sports were Dávid Ivan and 1988–89 in Argentine football a part of ?
AND((Q18603797,P641,c(Q349)), (Q3921762,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q18603797
relation P641
action find
entity Q3921762
relation P641
type Q349
{'AND': [['Q18603797', 'P641', {'concept': 'Q349'}], ['Q3921762', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?o WHERE { resource:Q3921762 property:P641 ?o . resource:Q18603797 property:P641 ?o . ?o rdf:type ontology:Q349 }
1988–89 in Argentine football Dávid Ivan
action filter_type
action intersection
action find
entity Dávid Ivan
relation sport
action find
entity 1988–89 in Argentine football
relation sport
type sport
{'AND': [['Dávid Ivan', 'sport', {'concept': 'sport'}], ['1988–89 in Argentine football', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?o WHERE { resource:1988–89_in_Argentine_football property:sport ?o . resource:Dávid_Ivan property:sport ?o . ?o rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q18603797,P641,c(Q349)), (Q3921762,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q18603797
relation P641
action find
entity Q3921762
relation P641
type Q349
The [ANSWER] was Dávid Ivan and 1988–89 in Argentine football a part of
{'AND': [['Q18603797', 'P641', {'concept': 'Q349'}], ['Q3921762', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?o WHERE { resource:Q3921762 property:P641 ?o . resource:Q18603797 property:P641 ?o . ?o rdf:type ontology:Q349 }
association football
The association football was Dávid Ivan and 1988–89 in Argentine football a part of
association football
action filter_type
action intersection
action find
entity Dávid Ivan
relation sport
action find
entity 1988–89 in Argentine football
relation sport
type sport
{'AND': [['Dávid Ivan', 'sport', {'concept': 'sport'}], ['1988–89 in Argentine football', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?o WHERE { resource:1988–89_in_Argentine_football property:sport ?o . resource:Dávid_Ivan property:sport ?o . ?o rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q214
P47
Q15617994
USER
How many administrative territories are bordered by Slovakia ?
(Q214,P47,c(Q15617994))
action count
action filter_type
action find
entity Q214
relation P47
type Q15617994
['Q214', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Q214 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Slovakia
action count
action filter_type
action find
entity Slovakia
relation shares border with
type designation for an administrative territorial entity
['Slovakia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Slovakia property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
Q212 Q213 Q36 Q28
(Q214,P47,c(Q15617994))
action count
action filter_type
action find
entity Q214
relation P47
type Q15617994
[ANSWER]
['Q214', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Q214 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Ukraine Czech Republic Poland Hungary
4
action count
action filter_type
action find
entity Slovakia
relation shares border with
type designation for an administrative territorial entity
['Slovakia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Slovakia property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q100091
Q15617994
USER
And also tell me about Riolunato?
(Q100091,P47,c(Q15617994))
action count
action filter_type
action find
entity Q100091
relation P47
type Q15617994
['Q100091', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:Q100091 property:P47 ?s . ?s rdf:type ontology:Q15617994 }
Riolunato
action count
action filter_type
action find
entity Riolunato
relation shares border with
type designation for an administrative territorial entity
['Riolunato', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:Riolunato property:shares_border_with ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
5
(Q100091,P47,c(Q15617994))
action count
action filter_type
action find
entity Q100091
relation P47
type Q15617994
[ANSWER]
['Q100091', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:Q100091 property:P47 ?s . ?s rdf:type ontology:Q15617994 }
5
action count
action filter_type
action find
entity Riolunato
relation shares border with
type designation for an administrative territorial entity
['Riolunato', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:Riolunato property:shares_border_with ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q14524493 Q811430 Q34442
USER
How many terrains are namesakes of atleast 1 constructions or roads ?
(c(Q811430)|c(Q34442),P138,c(Q14524493))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P138
type Q14524493
type Q811430
action find_reverse_tuple_counts
relation P138
type Q14524493
type Q34442
value 1
[[{'concept': 'Q811430'}, {'concept': 'Q34442'}], 'P138', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?v ) WHERE { { ?d property:P138 ?q . ?q rdf:type ontology:Q14524493 . ?d rdf:type ontology:Q811430 } UNION { ?d property:P138 ?q . ?q rdf:type ontology:Q14524493 . ?d rdf:type ontology:Q34442 } } GROUP BY ?q } . FILTER ( ?v >= 1 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation named after
type terrain
type construction
action find_reverse_tuple_counts
relation named after
type terrain
type road
value 1
[[{'concept': 'construction'}, {'concept': 'road'}], 'named after', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?v ) WHERE { { ?d property:named_after ?q . ?q rdf:type ontology:terrain . ?d rdf:type ontology:construction } UNION { ?d property:named_after ?q . ?q rdf:type ontology:terrain . ?d rdf:type ontology:road } } GROUP BY ?q } . FILTER ( ?v >= 1 ) }
[]
terrain construction road
SYSTEM
16
Q15814019 Q10670194 Q2649320 Q703922 Q1374 Q105261 Q152933 Q15735687 Q720209 Q724498 Q1149842 Q17541 Q16524 Q16529 Q1879915 Q10577219
(c(Q811430)|c(Q34442),P138,c(Q14524493))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P138
type Q14524493
type Q811430
action find_reverse_tuple_counts
relation P138
type Q14524493
type Q34442
value 1
[ANSWER]
[[{'concept': 'Q811430'}, {'concept': 'Q34442'}], 'P138', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?v ) WHERE { { ?d property:P138 ?q . ?q rdf:type ontology:Q14524493 . ?d rdf:type ontology:Q811430 } UNION { ?d property:P138 ?q . ?q rdf:type ontology:Q14524493 . ?d rdf:type ontology:Q34442 } } GROUP BY ?q } . FILTER ( ?v >= 1 ) }
Wolkenburg Skinnarviksberget Allmen Drachenfels Matterhorn Mount Parnassus Petersberg Reichenberger Höhe Bukit Timah Großer Ölberg Lohrberg Victoria Peak Üetliberg Calanda Löwenburg Mariaberget
16
action count
action atleast
action union
action find_reverse_tuple_counts
relation named after
type terrain
type construction
action find_reverse_tuple_counts
relation named after
type terrain
type road
value 1
[[{'concept': 'construction'}, {'concept': 'road'}], 'named after', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?v ) WHERE { { ?d property:named_after ?q . ?q rdf:type ontology:terrain . ?d rdf:type ontology:construction } UNION { ?d property:named_after ?q . ?q rdf:type ontology:terrain . ?d rdf:type ontology:road } } GROUP BY ?q } . FILTER ( ?v >= 1 ) }
[]