Simple Question (Direct)
Simple Question
Q1534549
P27
Q1048835
USER
Which political territory is Karl Martin Graß an inhabitant of ?
(Q1534549,P27,c(Q1048835))
action filter_type
action find
entity Q1534549
relation P27
type Q1048835
['Q1534549', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q1534549 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
Karl Martin Graß
action filter_type
action find
entity Karl Martin Graß
relation country of citizenship
type political territorial entity
['Karl Martin Graß', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Karl_Martin_Graß property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1534549,P27,c(Q1048835))
action filter_type
action find
entity Q1534549
relation P27
type Q1048835
[ANSWER] is Karl Martin Graß an inhabitant of
['Q1534549', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q1534549 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
Germany
Germany is Karl Martin Graß an inhabitant of
Germany
action filter_type
action find
entity Karl Martin Graß
relation country of citizenship
type political territorial entity
['Karl Martin Graß', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Karl_Martin_Graß property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1534549
P937
Q56061
USER
What is the location where that person worked ?
(Q183,P937,c(Q56061))
action filter_type
action find
entity Q1534549
relation P937
type Q56061
['Q183', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q1534549 property:P937 ?z . ?z rdf:type ontology:Q56061 }
Karl Martin Graß
action filter_type
action find
entity Karl Martin Graß
relation work location
type administrative territorial entity
['Germany', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Karl_Martin_Graß property:work_location ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q586
SYSTEM
Bonn
Q586
(Q183,P937,c(Q56061))
action filter_type
action find
entity Q1534549
relation P937
type Q56061
The location that person worked is in [ANSWER]
['Q183', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q1534549 property:P937 ?z . ?z rdf:type ontology:Q56061 }
Bonn
The location that person worked is in Bonn
Bonn
action filter_type
action find
entity Karl Martin Graß
relation work location
type administrative territorial entity
['Germany', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Karl_Martin_Graß property:work_location ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2562373 Q1534549
P102
Q7278
USER
Which political parties are Karl Martin Graß or Werner Rosenberg affiliated with ?
OR((Q1534549,P102,c(Q7278)), (Q2562373,P102,c(Q7278)))
action filter_type
action union
action find
entity Q1534549
relation P102
action find
entity Q2562373
relation P102
type Q7278
{'OR': [['Q1534549', 'P102', {'concept': 'Q7278'}], ['Q2562373', 'P102', {'concept': 'Q7278'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?d ) { ( resource:Q2562373 ) ( resource:Q1534549 ) } . ?d property:P102 ?z } . ?z rdf:type ontology:Q7278 }
Werner Rosenberg Karl Martin Graß
action filter_type
action union
action find
entity Karl Martin Graß
relation member of political party
action find
entity Werner Rosenberg
relation member of political party
type political party
{'OR': [['Karl Martin Graß', 'member of political party', {'concept': 'political party'}], ['Werner Rosenberg', 'member of political party', {'concept': 'political party'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?d ) { ( resource:Werner_Rosenberg ) ( resource:Karl_Martin_Graß ) } . ?d property:member_of_political_party ?z } . ?z rdf:type ontology:political_party }
[]
political party
Q49762 Q49768
SYSTEM
Christian Democratic Union, Social Democratic Party of Germany
Q49762 Q49768
OR((Q1534549,P102,c(Q7278)), (Q2562373,P102,c(Q7278)))
action filter_type
action union
action find
entity Q1534549
relation P102
action find
entity Q2562373
relation P102
type Q7278
Karl Martin Graß or Werner Rosenberg are affiliated with [ANSWERS]
{'OR': [['Q1534549', 'P102', {'concept': 'Q7278'}], ['Q2562373', 'P102', {'concept': 'Q7278'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?d ) { ( resource:Q2562373 ) ( resource:Q1534549 ) } . ?d property:P102 ?z } . ?z rdf:type ontology:Q7278 }
Christian Democratic Union Social Democratic Party of Germany
Karl Martin Graß or Werner Rosenberg are affiliated with Christian Democratic Union and Social Democratic Party of Germany
Christian Democratic Union Social Democratic Party of Germany
action filter_type
action union
action find
entity Karl Martin Graß
relation member of political party
action find
entity Werner Rosenberg
relation member of political party
type political party
{'OR': [['Karl Martin Graß', 'member of political party', {'concept': 'political party'}], ['Werner Rosenberg', 'member of political party', {'concept': 'political party'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?d ) { ( resource:Werner_Rosenberg ) ( resource:Karl_Martin_Graß ) } . ?d property:member_of_political_party ?z } . ?z rdf:type ontology:political_party }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q51929
P417
Q502895 Q1445650 Q56061
USER
How many administrative territories have adopted lesser number of people or holidays as patron saint than Ischitella ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q51929
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) ?e WHERE { { ?e property:P417 ?v . ?e rdf:type ontology:Q56061 . ?v rdf:type ontology:Q502895 } UNION { ?e property:P417 ?v . ?e rdf:type ontology:Q56061 . ?v rdf:type ontology:Q1445650 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Q51929 property:P417 ?j . { { ?j rdf:type ontology:Q502895 } UNION { ?j rdf:type ontology:Q1445650 } } } } . FILTER ( ?l < ?n ) }
Ischitella
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Ischitella
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) ?e WHERE { { ?e property:patron_saint ?v . ?e rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:common_name } UNION { ?e property:patron_saint ?v . ?e rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:holiday } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Ischitella property:patron_saint ?j . { { ?j rdf:type ontology:common_name } UNION { ?j rdf:type ontology:holiday } } } } . FILTER ( ?l < ?n ) }
[]
common name holiday administrative territorial entity
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q51929
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) ?e WHERE { { ?e property:P417 ?v . ?e rdf:type ontology:Q56061 . ?v rdf:type ontology:Q502895 } UNION { ?e property:P417 ?v . ?e rdf:type ontology:Q56061 . ?v rdf:type ontology:Q1445650 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Q51929 property:P417 ?j . { { ?j rdf:type ontology:Q502895 } UNION { ?j rdf:type ontology:Q1445650 } } } } . FILTER ( ?l < ?n ) }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Ischitella
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) ?e WHERE { { ?e property:patron_saint ?v . ?e rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:common_name } UNION { ?e property:patron_saint ?v . ?e rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:holiday } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Ischitella property:patron_saint ?j . { { ?j rdf:type ontology:common_name } UNION { ?j rdf:type ontology:holiday } } } } . FILTER ( ?l < ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q13121
P417
Q502895 Q1445650 Q56061
USER
And how about Aalst?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q13121
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } . resource:Q13121 property:P417 ?z } } . FILTER ( ?x < ?u ) . { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?x ) WHERE { { ?a property:P417 ?g . ?a rdf:type ontology:Q56061 . ?g rdf:type ontology:Q1445650 } UNION { ?a property:P417 ?g . ?a rdf:type ontology:Q56061 . ?g rdf:type ontology:Q502895 } } GROUP BY ?a } }
Aalst
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Aalst
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:common_name ) ( ontology:holiday ) } } . resource:Aalst property:patron_saint ?z } } . FILTER ( ?x < ?u ) . { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?x ) WHERE { { ?a property:patron_saint ?g . ?a rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:holiday } UNION { ?a property:patron_saint ?g . ?a rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:common_name } } GROUP BY ?a } }
[]
common name holiday administrative territorial entity
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q13121
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } . resource:Q13121 property:P417 ?z } } . FILTER ( ?x < ?u ) . { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?x ) WHERE { { ?a property:P417 ?g . ?a rdf:type ontology:Q56061 . ?g rdf:type ontology:Q1445650 } UNION { ?a property:P417 ?g . ?a rdf:type ontology:Q56061 . ?g rdf:type ontology:Q502895 } } GROUP BY ?a } }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Aalst
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:common_name ) ( ontology:holiday ) } } . resource:Aalst property:patron_saint ?z } } . FILTER ( ?x < ?u ) . { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?x ) WHERE { { ?a property:patron_saint ?g . ?a rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:holiday } UNION { ?a property:patron_saint ?g . ?a rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:common_name } } GROUP BY ?a } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13121
P6
Q502895
USER
Which person has that administrative territory as its head of government ?
action filter_type
action find
entity Q13121
relation P6
type Q502895
SELECT DISTINCT ?h WHERE { resource:Q13121 property:P6 ?h . ?h rdf:type ontology:Q502895 }
Aalst
action filter_type
action find
entity Aalst
relation head of government
type common name
SELECT DISTINCT ?h WHERE { resource:Aalst property:head_of_government ?h . ?h rdf:type ontology:common_name }
[]
common name
Q2305667
SYSTEM
Christoph D'Haese
Q2305667
action filter_type
action find
entity Q13121
relation P6
type Q502895
[ANSWER] has that administrative territory as its head of government
SELECT DISTINCT ?h WHERE { resource:Q13121 property:P6 ?h . ?h rdf:type ontology:Q502895 }
Christoph D'Haese
Christoph D'Haese has that administrative territory as its head of government
Christoph D'Haese
action filter_type
action find
entity Aalst
relation head of government
type common name
SELECT DISTINCT ?h WHERE { resource:Aalst property:head_of_government ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13121
P190
Q56061
USER
Which administrative territory is twin city of Aalst ?
(c(Q56061),P190,Q13121)
action filter_type
action find
entity Q13121
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q13121']
SELECT DISTINCT ?c WHERE { resource:Q13121 property:P190 ?c . ?c rdf:type ontology:Q56061 }
Aalst
action filter_type
action find
entity Aalst
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Aalst']
SELECT DISTINCT ?c WHERE { resource:Aalst property:sister_city ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q180131
SYSTEM
Gabrovo
Q180131
(c(Q56061),P190,Q13121)
action filter_type
action find
entity Q13121
relation P190
type Q56061
[ANSWER] is twin city of Aalst
[{'concept': 'Q56061'}, 'P190', 'Q13121']
SELECT DISTINCT ?c WHERE { resource:Q13121 property:P190 ?c . ?c rdf:type ontology:Q56061 }
Gabrovo
Gabrovo is twin city of Aalst
Gabrovo
action filter_type
action find
entity Aalst
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Aalst']
SELECT DISTINCT ?c WHERE { resource:Aalst property:sister_city ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q180131
P17
Q15617994
USER
Which administrative territory is that administrative territory a part of ?
(Q180131,P17,c(Q15617994))
action filter_type
action find
entity Q180131
relation P17
type Q15617994
['Q180131', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q180131 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Gabrovo
action filter_type
action find
entity Gabrovo
relation country
type designation for an administrative territorial entity
['Gabrovo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Gabrovo property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q219
SYSTEM
Bulgaria
Q219
(Q180131,P17,c(Q15617994))
action filter_type
action find
entity Q180131
relation P17
type Q15617994
The [ANSWER] is that administrative territory a part of
['Q180131', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q180131 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Bulgaria
The Bulgaria is that administrative territory a part of
Bulgaria
action filter_type
action find
entity Gabrovo
relation country
type designation for an administrative territorial entity
['Gabrovo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Gabrovo property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q180131
P127
Q1076486
USER
Which sports venue belongs to that administrative territory ?
(c(Q1076486),P127,Q219)
action filter_type
action find_reverse
entity Q180131
relation P127
type Q1076486
[{'concept': 'Q1076486'}, 'P127', 'Q219']
SELECT DISTINCT ?r WHERE { ?r property:P127 resource:Q180131 . ?r rdf:type ontology:Q1076486 }
Gabrovo
action filter_type
action find_reverse
entity Gabrovo
relation owned by
type sports venue
[{'concept': 'sports venue'}, 'owned by', 'Bulgaria']
SELECT DISTINCT ?r WHERE { ?r property:owned_by resource:Gabrovo . ?r rdf:type ontology:sports_venue }
[]
sports venue
Q4355477
SYSTEM
Hristo Botev Stadium
Q4355477
(c(Q1076486),P127,Q219)
action filter_type
action find_reverse
entity Q180131
relation P127
type Q1076486
[ANSWER] belongs to that administrative territory
[{'concept': 'Q1076486'}, 'P127', 'Q219']
SELECT DISTINCT ?r WHERE { ?r property:P127 resource:Q180131 . ?r rdf:type ontology:Q1076486 }
Hristo Botev Stadium
Hristo Botev Stadium belongs to that administrative territory
Hristo Botev Stadium
action filter_type
action find_reverse
entity Gabrovo
relation owned by
type sports venue
[{'concept': 'sports venue'}, 'owned by', 'Bulgaria']
SELECT DISTINCT ?r WHERE { ?r property:owned_by resource:Gabrovo . ?r rdf:type ontology:sports_venue }
[]