Simple Question (Direct)
Simple Question
Q1698899
P734
Q82799
USER
Who has the surname Ralf Päsler ?
(Q1698899,P734,c(Q82799))
action filter_type
action find
entity Q1698899
relation P734
type Q82799
['Q1698899', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q1698899 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Ralf Päsler
action filter_type
action find
entity Ralf Päsler
relation family name
type name
['Ralf Päsler', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Ralf_Päsler property:family_name ?w . ?w rdf:type ontology:name }
[]
name
Q23638942
SYSTEM
Päsler
Q23638942
(Q1698899,P734,c(Q82799))
action filter_type
action find
entity Q1698899
relation P734
type Q82799
[ANSWER] has the surname Ralf [ANSWER]
['Q1698899', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q1698899 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Päsler
Päsler has the surname Ralf Päsler
Päsler
action filter_type
action find
entity Ralf Päsler
relation family name
type name
['Ralf Päsler', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Ralf_Päsler property:family_name ?w . ?w rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1698899
P102
Q7278
USER
Which political party is Ralf Päsler a member of ?
(Q1698899,P102,c(Q7278))
action filter_type
action find
entity Q1698899
relation P102
type Q7278
['Q1698899', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?g WHERE { resource:Q1698899 property:P102 ?g . ?g rdf:type ontology:Q7278 }
Ralf Päsler
action filter_type
action find
entity Ralf Päsler
relation member of political party
type political party
['Ralf Päsler', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?g WHERE { resource:Ralf_Päsler property:member_of_political_party ?g . ?g rdf:type ontology:political_party }
[]
political party
Q49766
SYSTEM
Alliance '90/The Greens
Q49766
(Q1698899,P102,c(Q7278))
action filter_type
action find
entity Q1698899
relation P102
type Q7278
[ANSWER] is Ralf Päsler a member of
['Q1698899', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?g WHERE { resource:Q1698899 property:P102 ?g . ?g rdf:type ontology:Q7278 }
Alliance '90/The Greens
Alliance '90/The Greens is Ralf Päsler a member of
Alliance '90/The Greens
action filter_type
action find
entity Ralf Päsler
relation member of political party
type political party
['Ralf Päsler', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?g WHERE { resource:Ralf_Päsler property:member_of_political_party ?g . ?g rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1698899
P937
Q56061
USER
Which administrative territory is the work location of that person ?
(Q49766,P937,c(Q56061))
action filter_type
action find
entity Q1698899
relation P937
type Q56061
['Q49766', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q1698899 property:P937 ?k . ?k rdf:type ontology:Q56061 }
Ralf Päsler
action filter_type
action find
entity Ralf Päsler
relation work location
type administrative territorial entity
["Alliance '90/The Greens", 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Ralf_Päsler property:work_location ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1729
SYSTEM
Erfurt
Q1729
(Q49766,P937,c(Q56061))
action filter_type
action find
entity Q1698899
relation P937
type Q56061
[ANSWER] is the work location of that person
['Q49766', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q1698899 property:P937 ?k . ?k rdf:type ontology:Q56061 }
Erfurt
Erfurt is the work location of that person
Erfurt
action filter_type
action find
entity Ralf Päsler
relation work location
type administrative territorial entity
["Alliance '90/The Greens", 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Ralf_Päsler property:work_location ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q515 Q56061
USER
How many cities and administrative territories are the sister cities of that administrative territory ?
(Q1729,P190,c(Q515)) (Q1729,P190,c(Q56061)) (Q1729,P190,c(Q515)) (Q1729,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q1729
relation P190
type Q515
action filter_type
action find
entity Q1729
relation P190
type Q56061
['Q1729', 'P190', {'concept': 'Q515'}] ['Q1729', 'P190', {'concept': 'Q56061'}] ['Q1729', 'P190', {'concept': 'Q515'}] ['Q1729', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { resource:Q1729 property:P190 ?j . ?j rdf:type ontology:Q56061 } UNION { resource:Q1729 property:P190 ?j . ?j rdf:type ontology:Q515 } }
action count
action union
action filter_type
action find
entity Erfurt
relation sister city
type city
action filter_type
action find
entity Erfurt
relation sister city
type administrative territorial entity
['Erfurt', 'sister city', {'concept': 'city'}] ['Erfurt', 'sister city', {'concept': 'administrative territorial entity'}] ['Erfurt', 'sister city', {'concept': 'city'}] ['Erfurt', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { resource:Erfurt property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity } UNION { resource:Erfurt property:sister_city ?j . ?j rdf:type ontology:city } }
[]
city administrative territorial entity
SYSTEM
2 cities and 9 administrative territories
Q134494 Q41621 Q986627 Q44255 Q189328 Q648 Q57719 Q1720 Q216 Q13329 Q771251
(Q1729,P190,c(Q515)) (Q1729,P190,c(Q56061)) (Q1729,P190,c(Q515)) (Q1729,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q1729
relation P190
type Q515
action filter_type
action find
entity Q1729
relation P190
type Q56061
[ANSWER]
['Q1729', 'P190', {'concept': 'Q515'}] ['Q1729', 'P190', {'concept': 'Q56061'}] ['Q1729', 'P190', {'concept': 'Q515'}] ['Q1729', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { resource:Q1729 property:P190 ?j . ?j rdf:type ontology:Q56061 } UNION { resource:Q1729 property:P190 ?j . ?j rdf:type ontology:Q515 } }
Győr Haifa Shawnee San Miguel de Tucumán Lovech Lille Xuzhou Mainz Vilnius Piacenza Kati
2 cities and 9 administrative territories
action count
action union
action filter_type
action find
entity Erfurt
relation sister city
type city
action filter_type
action find
entity Erfurt
relation sister city
type administrative territorial entity
['Erfurt', 'sister city', {'concept': 'city'}] ['Erfurt', 'sister city', {'concept': 'administrative territorial entity'}] ['Erfurt', 'sister city', {'concept': 'city'}] ['Erfurt', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { resource:Erfurt property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity } UNION { resource:Erfurt property:sister_city ?j . ?j rdf:type ontology:city } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1729
P190
Q515 Q56061
USER
How many cities and administrative territories are a sister city of Erfurt ?
(c(Q515),P190,Q1729) (c(Q56061),P190,Q1729)
action count
action union
action filter_type
action find_reverse
entity Q1729
relation P190
type Q515
action filter_type
action find_reverse
entity Q1729
relation P190
type Q56061
[{'concept': 'Q515'}, 'P190', 'Q1729'] [{'concept': 'Q56061'}, 'P190', 'Q1729']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ?k . VALUES ( ?k ) { ( ontology:Q515 ) ( ontology:Q56061 ) } }
Erfurt
action count
action union
action filter_type
action find_reverse
entity Erfurt
relation sister city
type city
action filter_type
action find_reverse
entity Erfurt
relation sister city
type administrative territorial entity
[{'concept': 'city'}, 'sister city', 'Erfurt'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Erfurt']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ?k . VALUES ( ?k ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } }
[]
city administrative territorial entity
SYSTEM
2 cities and 9 administrative territories
Q134494 Q41621 Q216 Q44255 Q189328 Q648 Q57719 Q1720 Q986627 Q13329 Q771251
(c(Q515),P190,Q1729) (c(Q56061),P190,Q1729)
action count
action union
action filter_type
action find_reverse
entity Q1729
relation P190
type Q515
action filter_type
action find_reverse
entity Q1729
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q515'}, 'P190', 'Q1729'] [{'concept': 'Q56061'}, 'P190', 'Q1729']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ?k . VALUES ( ?k ) { ( ontology:Q515 ) ( ontology:Q56061 ) } }
Győr Haifa Vilnius San Miguel de Tucumán Lovech Lille Xuzhou Mainz Shawnee Piacenza Kati
2 cities and 9 administrative territories
action count
action union
action filter_type
action find_reverse
entity Erfurt
relation sister city
type city
action filter_type
action find_reverse
entity Erfurt
relation sister city
type administrative territorial entity
[{'concept': 'city'}, 'sister city', 'Erfurt'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Erfurt']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ?k . VALUES ( ?k ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1729
P17
Q1048835
USER
Which political territory is that administrative territory a part of ?
action filter_type
action find
entity Q1729
relation P17
type Q1048835
SELECT DISTINCT ?h WHERE { resource:Q1729 property:P17 ?h . ?h rdf:type ontology:Q1048835 }
Erfurt
action filter_type
action find
entity Erfurt
relation country
type political territorial entity
SELECT DISTINCT ?h WHERE { resource:Erfurt property:country ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
action filter_type
action find
entity Q1729
relation P17
type Q1048835
[ANSWER] is that administrative territory a part of
SELECT DISTINCT ?h WHERE { resource:Q1729 property:P17 ?h . ?h rdf:type ontology:Q1048835 }
Germany
Germany is that administrative territory a part of
Germany
action filter_type
action find
entity Erfurt
relation country
type political territorial entity
SELECT DISTINCT ?h WHERE { resource:Erfurt property:country ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q183 Q42300 Q1005
P530
Q15617994
USER
Does that political territory have tactful political relations with Comazzo and Gambia ?
(Q183,P530,Q42300) (Q183,P530,Q1005)
action is_in
entity Q183
action intersection
action find_reverse
entity Q42300
relation P530
action find_reverse
entity Q1005
relation P530
['Q183', 'P530', 'Q42300'] ['Q183', 'P530', 'Q1005']
ASK WHERE { resource:Q183 property:P530 resource:Q42300 . resource:Q183 property:P530 resource:Q1005 }
Germany Comazzo Gambia
action is_in
entity Germany
action intersection
action find_reverse
entity Comazzo
relation diplomatic relation
action find_reverse
entity Gambia
relation diplomatic relation
['Germany', 'diplomatic relation', 'Comazzo'] ['Germany', 'diplomatic relation', 'Gambia']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Comazzo . resource:Germany property:diplomatic_relation resource:Gambia }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q183,P530,Q42300) (Q183,P530,Q1005)
action is_in
entity Q183
action intersection
action find_reverse
entity Q42300
relation P530
action find_reverse
entity Q1005
relation P530
[ANSWER]
['Q183', 'P530', 'Q42300'] ['Q183', 'P530', 'Q1005']
ASK WHERE { resource:Q183 property:P530 resource:Q42300 . resource:Q183 property:P530 resource:Q1005 }
NO and YES respectively
action is_in
entity Germany
action intersection
action find_reverse
entity Comazzo
relation diplomatic relation
action find_reverse
entity Gambia
relation diplomatic relation
['Germany', 'diplomatic relation', 'Comazzo'] ['Germany', 'diplomatic relation', 'Gambia']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Comazzo . resource:Germany property:diplomatic_relation resource:Gambia }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1698899 Q183
P27
Q1048835
USER
Is Germany the native country of Ralf Päsler ?
(Q1698899,P27,Q183)
action is_in
entity Q183
action find
entity Q1698899
relation P27
['Q1698899', 'P27', 'Q183']
ASK WHERE { resource:Q1698899 property:P27 resource:Q183 }
Ralf Päsler Germany
action is_in
entity Germany
action find
entity Ralf Päsler
relation country of citizenship
['Ralf Päsler', 'country of citizenship', 'Germany']
ASK WHERE { resource:Ralf_Päsler property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q1698899,P27,Q183)
action is_in
entity Q183
action find
entity Q1698899
relation P27
[ANSWER]
['Q1698899', 'P27', 'Q183']
ASK WHERE { resource:Q1698899 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Ralf Päsler
relation country of citizenship
['Ralf Päsler', 'country of citizenship', 'Germany']
ASK WHERE { resource:Ralf_Päsler property:country_of_citizenship resource:Germany }
[]