Simple Question (Direct)
Simple Question
Q486404
P20
Q515
USER
Where did the demise of Reiner Geye occur ?
(Q486404,P20,c(Q515))
action filter_type
action find
entity Q486404
relation P20
type Q515
['Q486404', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q486404 property:P20 ?f . ?f rdf:type ontology:Q515 }
Reiner Geye
action filter_type
action find
entity Reiner Geye
relation place of death
type city
['Reiner Geye', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Reiner_Geye property:place_of_death ?f . ?f rdf:type ontology:city }
[]
city
Q1720
SYSTEM
Mainz
Q1720
(Q486404,P20,c(Q515))
action filter_type
action find
entity Q486404
relation P20
type Q515
The demise of Reiner Geye occurred in [ANSWER]
['Q486404', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q486404 property:P20 ?f . ?f rdf:type ontology:Q515 }
Mainz
The demise of Reiner Geye occurred in Mainz
Mainz
action filter_type
action find
entity Reiner Geye
relation place of death
type city
['Reiner Geye', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Reiner_Geye property:place_of_death ?f . ?f rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1720
P138
Q34442
USER
Which roads are the eponym of that city ?
(c(Q34442),P138,Q1720)
action filter_type
action find_reverse
entity Q1720
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q1720']
SELECT DISTINCT ?z WHERE { ?z property:P138 resource:Q1720 . ?z rdf:type ontology:Q34442 }
Mainz
action filter_type
action find_reverse
entity Mainz
relation named after
type road
[{'concept': 'road'}, 'named after', 'Mainz']
SELECT DISTINCT ?z WHERE { ?z property:named_after resource:Mainz . ?z rdf:type ontology:road }
[]
road
Q15848334 Q15813085
SYSTEM
Mainzer Straße, Mainzer Straße
Q15848334 Q15813085
(c(Q34442),P138,Q1720)
action filter_type
action find_reverse
entity Q1720
relation P138
type Q34442
[ANSWERS] are the eponym of that city
[{'concept': 'Q34442'}, 'P138', 'Q1720']
SELECT DISTINCT ?z WHERE { ?z property:P138 resource:Q1720 . ?z rdf:type ontology:Q34442 }
Mainzer Straße Mainzer Straße
Mainzer Straße and Mainzer Straße are the eponym of that city
Mainzer Straße Mainzer Straße
action filter_type
action find_reverse
entity Mainz
relation named after
type road
[{'concept': 'road'}, 'named after', 'Mainz']
SELECT DISTINCT ?z WHERE { ?z property:named_after resource:Mainz . ?z rdf:type ontology:road }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1720
P47
Q515
USER
Which city shares border with that one ?
(Q15848334,P47,c(Q515)) (Q15813085,P47,c(Q515))
action filter_type
action find
entity Q1720
relation P47
type Q515
['Q15848334', 'P47', {'concept': 'Q515'}] ['Q15813085', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { resource:Q1720 property:P47 ?x . ?x rdf:type ontology:Q515 }
Mainz
action filter_type
action find
entity Mainz
relation shares border with
type city
['Mainzer Straße', 'shares border with', {'concept': 'city'}] ['Mainzer Straße', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { resource:Mainz property:shares_border_with ?x . ?x rdf:type ontology:city }
[]
city
Q1721
SYSTEM
Wiesbaden
Q1721
(Q15848334,P47,c(Q515)) (Q15813085,P47,c(Q515))
action filter_type
action find
entity Q1720
relation P47
type Q515
[ANSWER] shares border with that one
['Q15848334', 'P47', {'concept': 'Q515'}] ['Q15813085', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { resource:Q1720 property:P47 ?x . ?x rdf:type ontology:Q515 }
Wiesbaden
Wiesbaden shares border with that one
Wiesbaden
action filter_type
action find
entity Mainz
relation shares border with
type city
['Mainzer Straße', 'shares border with', {'concept': 'city'}] ['Mainzer Straße', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { resource:Mainz property:shares_border_with ?x . ?x rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1721
P551
Q502895
USER
Which people live in that city ?
(c(Q502895),P551,Q1721)
action filter_type
action find_reverse
entity Q1721
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q1721']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P551 resource:Q1721 }
Wiesbaden
action filter_type
action find_reverse
entity Wiesbaden
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Wiesbaden']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:residence resource:Wiesbaden }
[]
common name
Q101087 Q106126 Q7281705
SYSTEM
Claus Kleber, Simone Signoret, Radu Albot
Q101087 Q106126 Q7281705
(c(Q502895),P551,Q1721)
action filter_type
action find_reverse
entity Q1721
relation P551
type Q502895
[ANSWERS] live in that city
[{'concept': 'Q502895'}, 'P551', 'Q1721']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P551 resource:Q1721 }
Claus Kleber Simone Signoret Radu Albot
Claus Kleber, Simone Signoret and Radu Albot live in that city
Claus Kleber Simone Signoret Radu Albot
action filter_type
action find_reverse
entity Wiesbaden
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Wiesbaden']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:residence resource:Wiesbaden }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19098537 Q1720
P6 P50
Q502895
USER
Which people are the head of government of Mainz or authored Lewis, Matthew Gregory ?
OR((Q1720,P6,c(Q502895)), (Q19098537,P50,c(Q502895)))
action filter_type
action union
action find
entity Q1720
relation P6
action find
entity Q19098537
relation P50
type Q502895
{'OR': [['Q1720', 'P6', {'concept': 'Q502895'}], ['Q19098537', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1720 property:P6 ?p } UNION { resource:Q19098537 property:P50 ?p } } . ?p rdf:type ontology:Q502895 }
Lewis, Matthew Gregory Mainz
action filter_type
action union
action find
entity Mainz
relation head of government
action find
entity Lewis, Matthew Gregory
relation author
type common name
{'OR': [['Mainz', 'head of government', {'concept': 'common name'}], ['Lewis, Matthew Gregory', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Mainz property:head_of_government ?p } UNION { resource:Lewis,_Matthew_Gregory property:author ?p } } . ?p rdf:type ontology:common_name }
[]
common name
Q96925 Q1560317 Q73788 Q1691256 Q95427 Q103893 Q740657
SYSTEM
Franz Stein, Günter Beck, Michael Ebling, Jockel Fuchs, Jens Beutel, Hermann-Hartmut Weyel, Leslie Stephen
Q96925 Q1560317 Q73788 Q1691256 Q95427 Q103893 Q740657
OR((Q1720,P6,c(Q502895)), (Q19098537,P50,c(Q502895)))
action filter_type
action union
action find
entity Q1720
relation P6
action find
entity Q19098537
relation P50
type Q502895
[ANSWERS] are the head of government of Mainz or authored Lewis, Matthew Gregory
{'OR': [['Q1720', 'P6', {'concept': 'Q502895'}], ['Q19098537', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1720 property:P6 ?p } UNION { resource:Q19098537 property:P50 ?p } } . ?p rdf:type ontology:Q502895 }
Franz Stein Günter Beck Michael Ebling Jockel Fuchs Jens Beutel Hermann-Hartmut Weyel Leslie Stephen
Franz Stein, Günter Beck, Michael Ebling, Jockel Fuchs, Jens Beutel, Hermann-Hartmut Weyel and Leslie Stephen are the head of government of Mainz or authored Lewis, Matthew Gregory
Franz Stein Günter Beck Michael Ebling Jockel Fuchs Jens Beutel Hermann-Hartmut Weyel Leslie Stephen
action filter_type
action union
action find
entity Mainz
relation head of government
action find
entity Lewis, Matthew Gregory
relation author
type common name
{'OR': [['Mainz', 'head of government', {'concept': 'common name'}], ['Lewis, Matthew Gregory', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Mainz property:head_of_government ?p } UNION { resource:Lewis,_Matthew_Gregory property:author ?p } } . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1720
P740
Q43229
USER
Which organization originated at Mainz ?
(c(Q43229),P740,Q1720)
action filter_type
action find_reverse
entity Q1720
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q1720']
SELECT DISTINCT ?u WHERE { ?u property:P740 resource:Q1720 . ?u rdf:type ontology:Q43229 }
Mainz
action filter_type
action find_reverse
entity Mainz
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Mainz']
SELECT DISTINCT ?u WHERE { ?u property:location_of_formation resource:Mainz . ?u rdf:type ontology:organization }
[]
organization
Q569343
SYSTEM
Related Designs
Q569343
(c(Q43229),P740,Q1720)
action filter_type
action find_reverse
entity Q1720
relation P740
type Q43229
[ANSWER] originated at Mainz
[{'concept': 'Q43229'}, 'P740', 'Q1720']
SELECT DISTINCT ?u WHERE { ?u property:P740 resource:Q1720 . ?u rdf:type ontology:Q43229 }
Related Designs
Related Designs originated at Mainz
Related Designs
action filter_type
action find_reverse
entity Mainz
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Mainz']
SELECT DISTINCT ?u WHERE { ?u property:location_of_formation resource:Mainz . ?u rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q569343
P452
Q268592
USER
Which economic branch is the industry to which that organization belongs ?
(Q569343,P452,c(Q268592))
action filter_type
action find
entity Q569343
relation P452
type Q268592
['Q569343', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?p WHERE { resource:Q569343 property:P452 ?p . ?p rdf:type ontology:Q268592 }
Related Designs
action filter_type
action find
entity Related Designs
relation industry
type economic branch
['Related Designs', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?p WHERE { resource:Related_Designs property:industry ?p . ?p rdf:type ontology:economic_branch }
[]
economic branch
Q941594
SYSTEM
video game industry
Q941594
(Q569343,P452,c(Q268592))
action filter_type
action find
entity Q569343
relation P452
type Q268592
[ANSWER] is the industry to which that organization belongs
['Q569343', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?p WHERE { resource:Q569343 property:P452 ?p . ?p rdf:type ontology:Q268592 }
video game industry
Video game industry is the industry to which that organization belongs
video game industry
action filter_type
action find
entity Related Designs
relation industry
type economic branch
['Related Designs', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?p WHERE { resource:Related_Designs property:industry ?p . ?p rdf:type ontology:economic_branch }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q407234 Q1720
P190
Q13220204
USER
Which administrative country subdivisions are twin cities of Mainz or Belogradchik ?
OR((Q1720,P190,c(Q13220204)), (Q407234,P190,c(Q13220204)))
action filter_type
action union
action find
entity Q1720
relation P190
action find
entity Q407234
relation P190
type Q13220204
{'OR': [['Q1720', 'P190', {'concept': 'Q13220204'}], ['Q407234', 'P190', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1720 property:P190 ?g } UNION { resource:Q407234 property:P190 ?g } } . ?g rdf:type ontology:Q13220204 }
Belogradchik Mainz
action filter_type
action union
action find
entity Mainz
relation sister city
action find
entity Belogradchik
relation sister city
type second-level administrative country subdivision
{'OR': [['Mainz', 'sister city', {'concept': 'second-level administrative country subdivision'}], ['Belogradchik', 'sister city', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Mainz property:sister_city ?g } UNION { resource:Belogradchik property:sister_city ?g } } . ?g rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q1011275 Q1435
SYSTEM
Knjaževac, Zagreb
Q1011275 Q1435
OR((Q1720,P190,c(Q13220204)), (Q407234,P190,c(Q13220204)))
action filter_type
action union
action find
entity Q1720
relation P190
action find
entity Q407234
relation P190
type Q13220204
[ANSWERS] are twin cities of Mainz or Belogradchik
{'OR': [['Q1720', 'P190', {'concept': 'Q13220204'}], ['Q407234', 'P190', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1720 property:P190 ?g } UNION { resource:Q407234 property:P190 ?g } } . ?g rdf:type ontology:Q13220204 }
Knjaževac Zagreb
Knjaževac and Zagreb are twin cities of Mainz or Belogradchik
Knjaževac Zagreb
action filter_type
action union
action find
entity Mainz
relation sister city
action find
entity Belogradchik
relation sister city
type second-level administrative country subdivision
{'OR': [['Mainz', 'sister city', {'concept': 'second-level administrative country subdivision'}], ['Belogradchik', 'sister city', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Mainz property:sister_city ?g } UNION { resource:Belogradchik property:sister_city ?g } } . ?g rdf:type ontology:second-level_administrative_country_subdivision }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P138
Q515 Q13220204
USER
Which cities are the origin of max number of administrative country subdivisions ?
(c(Q13220204),P138,Q11725)
action argmax
action find_reverse_tuple_counts
relation P138
type Q515
type Q13220204
[{'concept': 'Q13220204'}, 'P138', 'Q11725']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:P138 ?p . ?p rdf:type ontology:Q515 . ?t rdf:type ontology:Q13220204 } GROUP BY ?p } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?h ) WHERE { ?y property:P138 ?m . ?m rdf:type ontology:Q515 . ?y rdf:type ontology:Q13220204 } GROUP BY ?m } . FILTER ( ?h = ?u ) }
action argmax
action find_reverse_tuple_counts
relation named after
type city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'named after', 'Chongqing']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:named_after ?p . ?p rdf:type ontology:city . ?t rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?p } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?h ) WHERE { ?y property:named_after ?m . ?m rdf:type ontology:city . ?y rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?m } . FILTER ( ?h = ?u ) }
[]
city second-level administrative country subdivision
Q373813 Q6807568
SYSTEM
Albufeira, Emmen
Q373813 Q6807568
(c(Q13220204),P138,Q11725)
action argmax
action find_reverse_tuple_counts
relation P138
type Q515
type Q13220204
[ANSWERS] are the origin of max number of administrative country subdivisions
[{'concept': 'Q13220204'}, 'P138', 'Q11725']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:P138 ?p . ?p rdf:type ontology:Q515 . ?t rdf:type ontology:Q13220204 } GROUP BY ?p } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?h ) WHERE { ?y property:P138 ?m . ?m rdf:type ontology:Q515 . ?y rdf:type ontology:Q13220204 } GROUP BY ?m } . FILTER ( ?h = ?u ) }
Albufeira Emmen
Albufeira and Emmen are the origin of max number of administrative country subdivisions
Albufeira Emmen
action argmax
action find_reverse_tuple_counts
relation named after
type city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'named after', 'Chongqing']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:named_after ?p . ?p rdf:type ontology:city . ?t rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?p } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?h ) WHERE { ?y property:named_after ?m . ?m rdf:type ontology:city . ?y rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?m } . FILTER ( ?h = ?u ) }
[]