Simple Question (Direct)
Simple Question
Q1102268
P21
Q290
USER
What is the sex of Pál Justus ?
(Q1102268,P21,c(Q290))
action filter_type
action find
entity Q1102268
relation P21
type Q290
['Q1102268', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q1102268 property:P21 ?r . ?r rdf:type ontology:Q290 }
Pál Justus
action filter_type
action find
entity Pál Justus
relation gender
type sex
['Pál Justus', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Pál_Justus property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1102268,P21,c(Q290))
action filter_type
action find
entity Q1102268
relation P21
type Q290
The sex of Pál Justus is the [ANSWER]
['Q1102268', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q1102268 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
The sex of Pál Justus is the male
male
action filter_type
action find
entity Pál Justus
relation gender
type sex
['Pál Justus', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Pál_Justus property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1102268
P937
Q56061
USER
Where did Pál Justus work ?
(Q1102268,P937,c(Q56061))
action filter_type
action find
entity Q1102268
relation P937
type Q56061
['Q1102268', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q1102268 property:P937 ?n }
Pál Justus
action filter_type
action find
entity Pál Justus
relation work location
type administrative territorial entity
['Pál Justus', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Pál_Justus property:work_location ?n }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q1102268,P937,c(Q56061))
action filter_type
action find
entity Q1102268
relation P937
type Q56061
Pál Justus worked in [ANSWER]
['Q1102268', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q1102268 property:P937 ?n }
Budapest
Pál Justus worked in Budapest
Budapest
action filter_type
action find
entity Pál Justus
relation work location
type administrative territorial entity
['Pál Justus', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Pál_Justus property:work_location ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1102268
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q1781,P19,c(Q56061))
action filter_type
action find
entity Q1102268
relation P19
type Q56061
['Q1781', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1102268 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Pál Justus
action filter_type
action find
entity Pál Justus
relation place of birth
type administrative territorial entity
['Budapest', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Pál_Justus property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q45779
SYSTEM
Pécs
Q45779
(Q1781,P19,c(Q56061))
action filter_type
action find
entity Q1102268
relation P19
type Q56061
That person was born in [ANSWER]
['Q1781', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1102268 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Pécs
That person was born in Pécs
Pécs
action filter_type
action find
entity Pál Justus
relation place of birth
type administrative territorial entity
['Budapest', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Pál_Justus property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q45779
P190
Q13220204 Q15617994
USER
How many administrative country subdivisions and administrative territories are twin town of Pécs ?
(c(Q13220204),P190,Q45779) (c(Q15617994),P190,Q45779)
action count
action union
action filter_type
action find_reverse
entity Q45779
relation P190
type Q13220204
action filter_type
action find_reverse
entity Q45779
relation P190
type Q15617994
[{'concept': 'Q13220204'}, 'P190', 'Q45779'] [{'concept': 'Q15617994'}, 'P190', 'Q45779']
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { ?v rdf:type ontology:Q13220204 . ?v property:P190 resource:Q45779 } UNION { ?v property:P190 resource:Q45779 . ?v rdf:type ontology:Q15617994 } }
Pécs
action count
action union
action filter_type
action find_reverse
entity Pécs
relation sister city
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Pécs
relation sister city
type designation for an administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Pécs'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Pécs']
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { ?v rdf:type ontology:second-level_administrative_country_subdivision . ?v property:sister_city resource:Pécs } UNION { ?v property:sister_city resource:Pécs . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
second-level administrative country subdivision designation for an administrative territorial entity
SYSTEM
1 administrative country subdivisions and 2 administrative territories
Q1640 Q188894 Q128226
(c(Q13220204),P190,Q45779) (c(Q15617994),P190,Q45779)
action count
action union
action filter_type
action find_reverse
entity Q45779
relation P190
type Q13220204
action filter_type
action find_reverse
entity Q45779
relation P190
type Q15617994
[ANSWER]
[{'concept': 'Q13220204'}, 'P190', 'Q45779'] [{'concept': 'Q15617994'}, 'P190', 'Q45779']
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { ?v rdf:type ontology:Q13220204 . ?v property:P190 resource:Q45779 } UNION { ?v property:P190 resource:Q45779 . ?v rdf:type ontology:Q15617994 } }
Osijek Kütahya Terracina
1 administrative country subdivisions and 2 administrative territories
action count
action union
action filter_type
action find_reverse
entity Pécs
relation sister city
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Pécs
relation sister city
type designation for an administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Pécs'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Pécs']
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { ?v rdf:type ontology:second-level_administrative_country_subdivision . ?v property:sister_city resource:Pécs } UNION { ?v property:sister_city resource:Pécs . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q45779
P119
Q502895
USER
Which person has that administrative territory as place of burial ?
action filter_type
action find_reverse
entity Q45779
relation P119
type Q502895
SELECT DISTINCT ?f WHERE { ?f property:P119 resource:Q45779 . ?f rdf:type ontology:Q502895 }
Pécs
action filter_type
action find_reverse
entity Pécs
relation place of burial
type common name
SELECT DISTINCT ?f WHERE { ?f property:place_of_burial resource:Pécs . ?f rdf:type ontology:common_name }
[]
common name
Q314218
SYSTEM
Peter, King of Hungary
Q314218
action filter_type
action find_reverse
entity Q45779
relation P119
type Q502895
[ANSWER] has that administrative territory as place of burial
SELECT DISTINCT ?f WHERE { ?f property:P119 resource:Q45779 . ?f rdf:type ontology:Q502895 }
Peter, King of Hungary
Peter, King of Hungary has that administrative territory as place of burial
Peter, King of Hungary
action filter_type
action find_reverse
entity Pécs
relation place of burial
type common name
SELECT DISTINCT ?f WHERE { ?f property:place_of_burial resource:Pécs . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q314218
P25
Q502895
USER
Who was the mother of that one ?
(Q314218,P25,c(Q502895))
action filter_type
action find
entity Q314218
relation P25
type Q502895
['Q314218', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q314218 property:P25 ?j . ?j rdf:type ontology:Q502895 }
Peter, King of Hungary
action filter_type
action find
entity Peter, King of Hungary
relation mother
type common name
['Peter, King of Hungary', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Peter,_King_of_Hungary property:mother ?j . ?j rdf:type ontology:common_name }
[]
common name
Q14916855
SYSTEM
Grimelda of Hungary
Q14916855
(Q314218,P25,c(Q502895))
action filter_type
action find
entity Q314218
relation P25
type Q502895
The mother of that one was Princess [ANSWER]
['Q314218', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q314218 property:P25 ?j . ?j rdf:type ontology:Q502895 }
Grimelda of Hungary
The mother of that one was Princess Grimelda of Hungary
Grimelda of Hungary
action filter_type
action find
entity Peter, King of Hungary
relation mother
type common name
['Peter, King of Hungary', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Peter,_King_of_Hungary property:mother ?j . ?j rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P40
Q502895
USER
How many people have that person as a child ?
(c(Q502895),P40,Q14916855)
action count
action filter_type
action find_reverse
entity Q14916855
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q14916855']
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?q property:P40 resource:Q14916855 . ?q rdf:type ontology:Q502895 }
action count
action filter_type
action find_reverse
entity Grimelda of Hungary
relation child
type common name
[{'concept': 'common name'}, 'child', 'Grimelda of Hungary']
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?q property:child resource:Grimelda_of_Hungary . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q298298
(c(Q502895),P40,Q14916855)
action count
action filter_type
action find_reverse
entity Q14916855
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q14916855']
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?q property:P40 resource:Q14916855 . ?q rdf:type ontology:Q502895 }
Géza, Grand Prince of the Hungarians
1
action count
action filter_type
action find_reverse
entity Grimelda of Hungary
relation child
type common name
[{'concept': 'common name'}, 'child', 'Grimelda of Hungary']
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?q property:child resource:Grimelda_of_Hungary . ?q rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7176910 Q1781
P19 P190
Q56061
USER
Which administrative territories are partner towns of Budapest or were Peter Shinkoda born in ?
OR((Q1781,P190,c(Q56061)), (Q7176910,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1781
relation P190
action find
entity Q7176910
relation P19
type Q56061
{'OR': [['Q1781', 'P190', {'concept': 'Q56061'}], ['Q7176910', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q1781 property:P190 ?n } UNION { resource:Q7176910 property:P19 ?n } } . ?n rdf:type ontology:Q56061 }
Peter Shinkoda Budapest
action filter_type
action union
action find
entity Budapest
relation sister city
action find
entity Peter Shinkoda
relation place of birth
type administrative territorial entity
{'OR': [['Budapest', 'sister city', {'concept': 'administrative territorial entity'}], ['Peter Shinkoda', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Budapest property:sister_city ?n } UNION { resource:Peter_Shinkoda property:place_of_birth ?n } } . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1861 Q16558 Q25409 Q36036 Q174 Q33935 Q3766 Q2044 Q270 Q340
SYSTEM
Some of them are Bangkok, Fort Worth, Košice, Lviv, São Paulo, Tel Aviv, Damascus, Florence, Warsaw, Montreal
Q1741 Q174 Q13386 Q2807 Q340 Q25409 Q3766 Q1861 Q270 Q597 Q956 Q33935 Q2634 Q2044 Q60 Q64 Q216 Q16558 Q406 Q36036
OR((Q1781,P190,c(Q56061)), (Q7176910,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1781
relation P190
action find
entity Q7176910
relation P19
type Q56061
[ANSWERS] are partner towns of Budapest or were Peter Shinkoda born in
{'OR': [['Q1781', 'P190', {'concept': 'Q56061'}], ['Q7176910', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q1781 property:P190 ?n } UNION { resource:Q7176910 property:P19 ?n } } . ?n rdf:type ontology:Q56061 }
Vienna São Paulo Lecce Madrid Montreal Košice Damascus Bangkok Warsaw Lisbon Beijing Tel Aviv Naples Florence New York City Berlin Vilnius Fort Worth Istanbul Lviv
Bangkok, Fort Worth, Košice, Lviv, São Paulo, Tel Aviv, Damascus, Florence, Warsaw and Montreal are partner towns of Budapest or were Peter Shinkoda born in
Bangkok Fort Worth Košice Lviv São Paulo Tel Aviv Damascus Florence Warsaw Montreal
action filter_type
action union
action find
entity Budapest
relation sister city
action find
entity Peter Shinkoda
relation place of birth
type administrative territorial entity
{'OR': [['Budapest', 'sister city', {'concept': 'administrative territorial entity'}], ['Peter Shinkoda', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Budapest property:sister_city ?n } UNION { resource:Peter_Shinkoda property:place_of_birth ?n } } . ?n rdf:type ontology:administrative_territorial_entity }
[]