Simple Question (Direct)
Simple Question
Q25917006
P27
Q7275
USER
Which state is the country of citizenship of Jitka Volfová ?
(Q25917006,P27,c(Q7275))
action filter_type
action find
entity Q25917006
relation P27
type Q7275
['Q25917006', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?c WHERE { resource:Q25917006 property:P27 ?c . ?c rdf:type ontology:Q7275 }
Jitka Volfová
action filter_type
action find
entity Jitka Volfová
relation country of citizenship
type state
['Jitka Volfová', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?c WHERE { resource:Jitka_Volfová property:country_of_citizenship ?c . ?c rdf:type ontology:state }
[]
state
Q33946
SYSTEM
Czechoslovakia
Q33946
(Q25917006,P27,c(Q7275))
action filter_type
action find
entity Q25917006
relation P27
type Q7275
[ANSWER] is the country of citizenship of Jitka Volfová
['Q25917006', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?c WHERE { resource:Q25917006 property:P27 ?c . ?c rdf:type ontology:Q7275 }
Czechoslovakia
Czechoslovakia is the country of citizenship of Jitka Volfová
Czechoslovakia
action filter_type
action find
entity Jitka Volfová
relation country of citizenship
type state
['Jitka Volfová', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?c WHERE { resource:Jitka_Volfová property:country_of_citizenship ?c . ?c rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q33946
P17
Q7275
USER
Which state is that one a part of ?
(Q33946,P17,c(Q7275))
action filter_type
action find
entity Q33946
relation P17
type Q7275
['Q33946', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7275 . resource:Q33946 property:P17 ?n }
Czechoslovakia
action filter_type
action find
entity Czechoslovakia
relation country
type state
['Czechoslovakia', 'country', {'concept': 'state'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:state . resource:Czechoslovakia property:country ?n }
[]
state
Q33946
SYSTEM
Czechoslovakia
Q33946
(Q33946,P17,c(Q7275))
action filter_type
action find
entity Q33946
relation P17
type Q7275
The [ANSWER] is that one a part of
['Q33946', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7275 . resource:Q33946 property:P17 ?n }
Czechoslovakia
The Czechoslovakia is that one a part of
Czechoslovakia
action filter_type
action find
entity Czechoslovakia
relation country
type state
['Czechoslovakia', 'country', {'concept': 'state'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:state . resource:Czechoslovakia property:country ?n }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P35
Q502895 Q7275
USER
How many states have less number of people as their head of state than that state ?
(c(Q7275),P35,c(Q502895))
action count
action less
action find_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_type
action find
entity Q33946
relation P35
type Q502895
[{'concept': 'Q7275'}, 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?q ) WHERE { ?w property:P35 ?b . ?b rdf:type ontology:Q7275 . ?w rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { ?m rdf:type ontology:Q502895 . resource:Q33946 property:P35 ?m } } . FILTER ( ?q < ?n ) }
action count
action less
action find_tuple_counts
relation head of state
type common name
type state
action count
action filter_type
action find
entity Czechoslovakia
relation head of state
type common name
[{'concept': 'state'}, 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?q ) WHERE { ?w property:head_of_state ?b . ?b rdf:type ontology:state . ?w rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { ?m rdf:type ontology:common_name . resource:Czechoslovakia property:head_of_state ?m } } . FILTER ( ?q < ?n ) }
[]
common name state
SYSTEM
0
(c(Q7275),P35,c(Q502895))
action count
action less
action find_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_type
action find
entity Q33946
relation P35
type Q502895
[ANSWER]
[{'concept': 'Q7275'}, 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?q ) WHERE { ?w property:P35 ?b . ?b rdf:type ontology:Q7275 . ?w rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { ?m rdf:type ontology:Q502895 . resource:Q33946 property:P35 ?m } } . FILTER ( ?q < ?n ) }
0
action count
action less
action find_tuple_counts
relation head of state
type common name
type state
action count
action filter_type
action find
entity Czechoslovakia
relation head of state
type common name
[{'concept': 'state'}, 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?q ) WHERE { ?w property:head_of_state ?b . ?b rdf:type ontology:state . ?w rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { ?m rdf:type ontology:common_name . resource:Czechoslovakia property:head_of_state ?m } } . FILTER ( ?q < ?n ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1272545 Q33946
P47 P20
Q56061
USER
Which administrative territories are adjacent to Czechoslovakia or are the places of death of Eberhard Bachmann ?
OR((Q33946,P47,c(Q56061)), (Q1272545,P20,c(Q56061)))
action filter_type
action union
action find
entity Q33946
relation P47
action find
entity Q1272545
relation P20
type Q56061
{'OR': [['Q33946', 'P47', {'concept': 'Q56061'}], ['Q1272545', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q1272545 property:P20 ?c } UNION { resource:Q33946 property:P47 ?c } } . ?c rdf:type ontology:Q56061 }
Eberhard Bachmann Czechoslovakia
action filter_type
action union
action find
entity Czechoslovakia
relation shares border with
action find
entity Eberhard Bachmann
relation place of death
type administrative territorial entity
{'OR': [['Czechoslovakia', 'shares border with', {'concept': 'administrative territorial entity'}], ['Eberhard Bachmann', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Eberhard_Bachmann property:place_of_death ?c } UNION { resource:Czechoslovakia property:shares_border_with ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q458
SYSTEM
Berlin, European Union
Q64 Q458
OR((Q33946,P47,c(Q56061)), (Q1272545,P20,c(Q56061)))
action filter_type
action union
action find
entity Q33946
relation P47
action find
entity Q1272545
relation P20
type Q56061
[ANSWERS] are adjacent to Czechoslovakia or are the places of death of Eberhard Bachmann
{'OR': [['Q33946', 'P47', {'concept': 'Q56061'}], ['Q1272545', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q1272545 property:P20 ?c } UNION { resource:Q33946 property:P47 ?c } } . ?c rdf:type ontology:Q56061 }
Berlin European Union
Berlin and European Union are adjacent to Czechoslovakia or are the places of death of Eberhard Bachmann
Berlin European Union
action filter_type
action union
action find
entity Czechoslovakia
relation shares border with
action find
entity Eberhard Bachmann
relation place of death
type administrative territorial entity
{'OR': [['Czechoslovakia', 'shares border with', {'concept': 'administrative territorial entity'}], ['Eberhard Bachmann', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Eberhard_Bachmann property:place_of_death ?c } UNION { resource:Czechoslovakia property:shares_border_with ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q1048835
USER
How many administrative territories or political territories have diplomatic relationships with that administrative territory ?
(Q458,P530,c(Q15617994)) (Q458,P530,c(Q1048835)) (Q64,P530,c(Q15617994)) (Q64,P530,c(Q1048835)) (Q458,P530,c(Q15617994)) (Q458,P530,c(Q1048835))
['Q458', 'P530', {'concept': 'Q15617994'}] ['Q458', 'P530', {'concept': 'Q1048835'}] ['Q64', 'P530', {'concept': 'Q15617994'}] ['Q64', 'P530', {'concept': 'Q1048835'}] ['Q458', 'P530', {'concept': 'Q15617994'}] ['Q458', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q458 property:P530 ?z } UNION { resource:Q458 property:P530 ?y } UNION { resource:Q614184 property:P530 ?z } UNION { resource:Q614184 property:P530 ?y } UNION { resource:Q458 property:P530 ?z } UNION { resource:Q458 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
['European Union', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Berlin', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Berlin', 'diplomatic relation', {'concept': 'political territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:European_Union property:diplomatic_relation ?z } UNION { resource:European_Union property:diplomatic_relation ?y } UNION { resource:Berlin property:diplomatic_relation ?z } UNION { resource:Berlin property:diplomatic_relation ?y } UNION { resource:European_Union property:diplomatic_relation ?z } UNION { resource:European_Union property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
designation for an administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q64
SYSTEM
Did you mean Berlin ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q458 property:P530 ?z } UNION { resource:Q458 property:P530 ?y } UNION { resource:Q614184 property:P530 ?z } UNION { resource:Q614184 property:P530 ?y } UNION { resource:Q458 property:P530 ?z } UNION { resource:Q458 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Did you mean Berlin ?
Berlin
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:European_Union property:diplomatic_relation ?z } UNION { resource:European_Union property:diplomatic_relation ?y } UNION { resource:Berlin property:diplomatic_relation ?z } UNION { resource:Berlin property:diplomatic_relation ?y } UNION { resource:European_Union property:diplomatic_relation ?z } UNION { resource:European_Union property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant European Union. Could you tell me the answer for that?
(Q458,P530,c(Q15617994)) (Q458,P530,c(Q1048835)) (Q64,P530,c(Q15617994)) (Q64,P530,c(Q1048835)) (Q458,P530,c(Q15617994)) (Q458,P530,c(Q1048835))
Q458
['Q458', 'P530', {'concept': 'Q15617994'}] ['Q458', 'P530', {'concept': 'Q1048835'}] ['Q64', 'P530', {'concept': 'Q15617994'}] ['Q64', 'P530', {'concept': 'Q1048835'}] ['Q458', 'P530', {'concept': 'Q15617994'}] ['Q458', 'P530', {'concept': 'Q1048835'}]
['European Union', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Berlin', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Berlin', 'diplomatic relation', {'concept': 'political territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
4
Q155 Q184 Q16 Q34020
(Q458,P530,c(Q15617994)) (Q458,P530,c(Q1048835)) (Q64,P530,c(Q15617994)) (Q64,P530,c(Q1048835)) (Q458,P530,c(Q15617994)) (Q458,P530,c(Q1048835))
[ANSWER]
['Q458', 'P530', {'concept': 'Q15617994'}] ['Q458', 'P530', {'concept': 'Q1048835'}] ['Q64', 'P530', {'concept': 'Q15617994'}] ['Q64', 'P530', {'concept': 'Q1048835'}] ['Q458', 'P530', {'concept': 'Q15617994'}] ['Q458', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q458 property:P530 ?z } UNION { resource:Q458 property:P530 ?y } UNION { resource:Q614184 property:P530 ?z } UNION { resource:Q614184 property:P530 ?y } UNION { resource:Q458 property:P530 ?z } UNION { resource:Q458 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Brazil Belarus Canada Niue
4
['European Union', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Berlin', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Berlin', 'diplomatic relation', {'concept': 'political territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:European_Union property:diplomatic_relation ?z } UNION { resource:European_Union property:diplomatic_relation ?y } UNION { resource:Berlin property:diplomatic_relation ?z } UNION { resource:Berlin property:diplomatic_relation ?y } UNION { resource:European_Union property:diplomatic_relation ?z } UNION { resource:European_Union property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P190
Q515
USER
Which cities are the sister cities of Berlin ?
(Q64,P190,c(Q515))
action filter_type
action find
entity Q64
relation P190
type Q515
['Q64', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q64 property:P190 ?a . ?a rdf:type ontology:Q515 }
Berlin
action filter_type
action find
entity Berlin
relation sister city
type city
['Berlin', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Berlin property:sister_city ?a . ?a rdf:type ontology:city }
[]
city
Q3935 Q1486 Q9005
SYSTEM
Windhoek, Buenos Aires, Brussels
Q3935 Q1486 Q9005
(Q64,P190,c(Q515))
action filter_type
action find
entity Q64
relation P190
type Q515
[ANSWERS] are the sister cities of Berlin
['Q64', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q64 property:P190 ?a . ?a rdf:type ontology:Q515 }
Windhoek Buenos Aires Brussels
Windhoek, Buenos Aires and Brussels are the sister cities of Berlin
Windhoek Buenos Aires Brussels
action filter_type
action find
entity Berlin
relation sister city
type city
['Berlin', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Berlin property:sister_city ?a . ?a rdf:type ontology:city }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q64
Q56061
USER
And which administrative territory?
(Q64,P190,c(Q56061))
action filter_type
action find
entity Q64
relation P190
type Q56061
['Q64', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . resource:Q64 property:P190 ?y }
Berlin
action filter_type
action find
entity Berlin
relation sister city
type administrative territorial entity
['Berlin', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . resource:Berlin property:sister_city ?y }
[]
administrative territorial entity
Q1085 Q649 Q2807
SYSTEM
Prague, Moscow, Madrid
Q269 Q84 Q3630 Q270 Q649 Q239 Q2807 Q956 Q1781 Q1489 Q1490 Q65 Q90 Q406 Q1085
(Q64,P190,c(Q56061))
action filter_type
action find
entity Q64
relation P190
type Q56061
[ANSWERS]
['Q64', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . resource:Q64 property:P190 ?y }
Tashkent London Jakarta Warsaw Moscow Brussels Madrid Beijing Budapest Mexico City Tokyo Los Angeles Paris Istanbul Prague
Prague Moscow Madrid
action filter_type
action find
entity Berlin
relation sister city
type administrative territorial entity
['Berlin', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . resource:Berlin property:sister_city ?y }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q9005
P190
Q515
USER
Are Brussels twin town of those administrative territories ?
(Q9005,P190,Q1085) (Q9005,P190,Q649) (Q9005,P190,Q2807)
action is_in
entity prev_answer
action find
entity Q9005
relation P190
['Q9005', 'P190', 'Q1085'] ['Q9005', 'P190', 'Q649'] ['Q9005', 'P190', 'Q2807']
ASK WHERE { VALUES ( ?u ) { ( resource:Q269 ) ( resource:Q84 ) ( resource:Q3630 ) } . resource:Q9005 property:P190 ?u }
Brussels
action is_in
entity prev_answer
action find
entity Brussels
relation sister city
['Brussels', 'sister city', 'Prague'] ['Brussels', 'sister city', 'Moscow'] ['Brussels', 'sister city', 'Madrid']
ASK WHERE { VALUES ( ?u ) { ( resource:Tashkent ) ( resource:London ) ( resource:Jakarta ) } . resource:Brussels property:sister_city ?u }
[]
city
SYSTEM
YES
(Q9005,P190,Q1085) (Q9005,P190,Q649) (Q9005,P190,Q2807)
action is_in
entity prev_answer
action find
entity Q9005
relation P190
[ANSWER]
['Q9005', 'P190', 'Q1085'] ['Q9005', 'P190', 'Q649'] ['Q9005', 'P190', 'Q2807']
ASK WHERE { VALUES ( ?u ) { ( resource:Q269 ) ( resource:Q84 ) ( resource:Q3630 ) } . resource:Q9005 property:P190 ?u }
Yes
action is_in
entity prev_answer
action find
entity Brussels
relation sister city
['Brussels', 'sister city', 'Prague'] ['Brussels', 'sister city', 'Moscow'] ['Brussels', 'sister city', 'Madrid']
ASK WHERE { VALUES ( ?u ) { ( resource:Tashkent ) ( resource:London ) ( resource:Jakarta ) } . resource:Brussels property:sister_city ?u }
[]