Simple Question (Direct)
Simple Question
Q1102410
P1040
Q502895
USER
Who is the editor of Johnny Corncob ?
(Q1102410,P1040,c(Q502895))
action filter_type
action find
entity Q1102410
relation P1040
type Q502895
['Q1102410', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q1102410 property:P1040 ?a . ?a rdf:type ontology:Q502895 }
Johnny Corncob
action filter_type
action find
entity Johnny Corncob
relation film editor
type common name
['Johnny Corncob', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Johnny_Corncob property:film_editor ?a . ?a rdf:type ontology:common_name }
[]
common name
Q16518802
SYSTEM
János Czipauer
Q16518802
(Q1102410,P1040,c(Q502895))
action filter_type
action find
entity Q1102410
relation P1040
type Q502895
The editor of Johnny Corncob is of [ANSWER]
['Q1102410', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q1102410 property:P1040 ?a . ?a rdf:type ontology:Q502895 }
János Czipauer
The editor of Johnny Corncob is of János Czipauer
János Czipauer
action filter_type
action find
entity Johnny Corncob
relation film editor
type common name
['Johnny Corncob', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Johnny_Corncob property:film_editor ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16518802
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q16518802,P19,c(Q56061))
action filter_type
action find
entity Q16518802
relation P19
type Q56061
['Q16518802', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q16518802 property:P19 ?d . ?d rdf:type ontology:Q56061 }
János Czipauer
action filter_type
action find
entity János Czipauer
relation place of birth
type administrative territorial entity
['János Czipauer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:János_Czipauer property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q16518802,P19,c(Q56061))
action filter_type
action find
entity Q16518802
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q16518802', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q16518802 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Budapest
Budapest is the birthplace of that person
Budapest
action filter_type
action find
entity János Czipauer
relation place of birth
type administrative territorial entity
['János Czipauer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:János_Czipauer property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P47
Q515 Q56061
USER
How many cities or administrative territories share border with that administrative territory ?
(c(Q515),P47,Q1781) (c(Q56061),P47,Q1781) (c(Q515),P47,Q1781) (c(Q56061),P47,Q1781)
action count
action union
action filter_type
action find_reverse
entity Q1781
relation P47
type Q515
action filter_type
action find_reverse
entity Q1781
relation P47
type Q56061
[{'concept': 'Q515'}, 'P47', 'Q1781'] [{'concept': 'Q56061'}, 'P47', 'Q1781'] [{'concept': 'Q515'}, 'P47', 'Q1781'] [{'concept': 'Q56061'}, 'P47', 'Q1781']
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { { ?h property:P47 resource:Q1781 . ?h rdf:type ontology:Q56061 } UNION { ?h rdf:type ontology:Q515 . ?h property:P47 resource:Q1781 } }
action count
action union
action filter_type
action find_reverse
entity Budapest
relation shares border with
type city
action filter_type
action find_reverse
entity Budapest
relation shares border with
type administrative territorial entity
[{'concept': 'city'}, 'shares border with', 'Budapest'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Budapest'] [{'concept': 'city'}, 'shares border with', 'Budapest'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Budapest']
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { { ?h property:shares_border_with resource:Budapest . ?h rdf:type ontology:administrative_territorial_entity } UNION { ?h rdf:type ontology:city . ?h property:shares_border_with resource:Budapest } }
[]
city administrative territorial entity
SYSTEM
13
Q755691 Q222964 Q283023 Q193050 Q842908 Q512073 Q645567 Q547479 Q842912 Q36063 Q854933 Q740853 Q830652
(c(Q515),P47,Q1781) (c(Q56061),P47,Q1781) (c(Q515),P47,Q1781) (c(Q56061),P47,Q1781)
action count
action union
action filter_type
action find_reverse
entity Q1781
relation P47
type Q515
action filter_type
action find_reverse
entity Q1781
relation P47
type Q56061
[ANSWER]
[{'concept': 'Q515'}, 'P47', 'Q1781'] [{'concept': 'Q56061'}, 'P47', 'Q1781'] [{'concept': 'Q515'}, 'P47', 'Q1781'] [{'concept': 'Q56061'}, 'P47', 'Q1781']
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { { ?h property:P47 resource:Q1781 . ?h rdf:type ontology:Q56061 } UNION { ?h rdf:type ontology:Q515 . ?h property:P47 resource:Q1781 } }
Budaörs Pécel Maglód Érd Gyál Kistarcsa Törökbálint Dunakeszi Budakeszi Vecsés Dunaharaszti Szigetszentmiklós Fót
13
action count
action union
action filter_type
action find_reverse
entity Budapest
relation shares border with
type city
action filter_type
action find_reverse
entity Budapest
relation shares border with
type administrative territorial entity
[{'concept': 'city'}, 'shares border with', 'Budapest'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Budapest'] [{'concept': 'city'}, 'shares border with', 'Budapest'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Budapest']
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { { ?h property:shares_border_with resource:Budapest . ?h rdf:type ontology:administrative_territorial_entity } UNION { ?h rdf:type ontology:city . ?h property:shares_border_with resource:Budapest } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1781
P190
Q56061
USER
How many administrative territories are twin cities of Budapest ?
(Q1781,P190,c(Q56061))
action count
action filter_type
action find
entity Q1781
relation P190
type Q56061
['Q1781', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Q1781 property:P190 ?n . ?n rdf:type ontology:Q56061 }
Budapest
action count
action filter_type
action find
entity Budapest
relation sister city
type administrative territorial entity
['Budapest', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Budapest property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
19
Q3766 Q1861 Q25409 Q2634 Q1741 Q13386 Q33935 Q406 Q174 Q216 Q270 Q16558 Q2807 Q597 Q956 Q2044 Q64 Q60 Q36036
(Q1781,P190,c(Q56061))
action count
action filter_type
action find
entity Q1781
relation P190
type Q56061
[ANSWER]
['Q1781', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Q1781 property:P190 ?n . ?n rdf:type ontology:Q56061 }
Damascus Bangkok Košice Naples Vienna Lecce Tel Aviv Istanbul São Paulo Vilnius Warsaw Fort Worth Madrid Lisbon Beijing Florence Berlin New York City Lviv
19
action count
action filter_type
action find
entity Budapest
relation sister city
type administrative territorial entity
['Budapest', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Budapest property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q177770
P190
Q56061
USER
And how about Otradny?
(Q177770,P190,c(Q56061))
action count
action filter_type
action find
entity Q177770
relation P190
type Q56061
['Q177770', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Q177770 property:P190 ?k . ?k rdf:type ontology:Q56061 }
Otradny
action count
action filter_type
action find
entity Otradny
relation sister city
type administrative territorial entity
['Otradny', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Otradny property:sister_city ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q477170
(Q177770,P190,c(Q56061))
action count
action filter_type
action find
entity Q177770
relation P190
type Q56061
[ANSWER]
['Q177770', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Q177770 property:P190 ?k . ?k rdf:type ontology:Q56061 }
Bačka Palanka
1
action count
action filter_type
action find
entity Otradny
relation sister city
type administrative territorial entity
['Otradny', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Otradny property:sister_city ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q217411
Q56061
USER
And what about Beyoğlu?
(Q217411,P190,c(Q56061))
action count
action filter_type
action find
entity Q217411
relation P190
type Q56061
['Q217411', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d rdf:type ontology:Q56061 . resource:Q217411 property:P190 ?d }
Beyoğlu
action count
action filter_type
action find
entity Beyoğlu
relation sister city
type administrative territorial entity
['Beyoğlu', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:Beyoğlu property:sister_city ?d }
[]
administrative territorial entity
SYSTEM
6
(Q217411,P190,c(Q56061))
action count
action filter_type
action find
entity Q217411
relation P190
type Q56061
[ANSWER]
['Q217411', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d rdf:type ontology:Q56061 . resource:Q217411 property:P190 ?d }
6
action count
action filter_type
action find
entity Beyoğlu
relation sister city
type administrative territorial entity
['Beyoğlu', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:Beyoğlu property:sister_city ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q217411
P17
Q15617994
USER
Which administrative territory is that district of Turkey located in ?
action filter_type
action find
entity Q217411
relation P17
type Q15617994
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q217411 property:P17 ?v }
Beyoğlu
action filter_type
action find
entity Beyoğlu
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Beyoğlu property:country ?v }
[]
designation for an administrative territorial entity
Q43
SYSTEM
Turkey
Q43
action filter_type
action find
entity Q217411
relation P17
type Q15617994
That district of [ANSWER] is located in [ANSWER]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q217411 property:P17 ?v }
Turkey
That district of Turkey is located in Turkey
Turkey
action filter_type
action find
entity Beyoğlu
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Beyoğlu property:country ?v }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q43 Q227 Q41
P47
Q15617994
USER
Is that administrative territory next to the border of Azerbaijan and Greece ?
(Q43,P47,Q227) (Q43,P47,Q41)
action is_in
entity Q43
action intersection
action find_reverse
entity Q227
relation P47
action find_reverse
entity Q41
relation P47
['Q43', 'P47', 'Q227'] ['Q43', 'P47', 'Q41']
ASK WHERE { resource:Q43 property:P47 resource:Q227 . resource:Q43 property:P47 resource:Q41 }
Turkey Azerbaijan Greece
action is_in
entity Turkey
action intersection
action find_reverse
entity Azerbaijan
relation shares border with
action find_reverse
entity Greece
relation shares border with
['Turkey', 'shares border with', 'Azerbaijan'] ['Turkey', 'shares border with', 'Greece']
ASK WHERE { resource:Turkey property:shares_border_with resource:Azerbaijan . resource:Turkey property:shares_border_with resource:Greece }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q43,P47,Q227) (Q43,P47,Q41)
action is_in
entity Q43
action intersection
action find_reverse
entity Q227
relation P47
action find_reverse
entity Q41
relation P47
[ANSWER]
['Q43', 'P47', 'Q227'] ['Q43', 'P47', 'Q41']
ASK WHERE { resource:Q43 property:P47 resource:Q227 . resource:Q43 property:P47 resource:Q41 }
Yes
action is_in
entity Turkey
action intersection
action find_reverse
entity Azerbaijan
relation shares border with
action find_reverse
entity Greece
relation shares border with
['Turkey', 'shares border with', 'Azerbaijan'] ['Turkey', 'shares border with', 'Greece']
ASK WHERE { resource:Turkey property:shares_border_with resource:Azerbaijan . resource:Turkey property:shares_border_with resource:Greece }
[]