Simple Question (Direct)
Simple Question
Q1745204
P937
Q56061
USER
What is the work location of Klaus Hentschel ?
(Q1745204,P937,c(Q56061))
action filter_type
action find
entity Q1745204
relation P937
type Q56061
['Q1745204', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1745204 property:P937 ?x . ?x rdf:type ontology:Q56061 }
Klaus Hentschel
action filter_type
action find
entity Klaus Hentschel
relation work location
type administrative territorial entity
['Klaus Hentschel', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Klaus_Hentschel property:work_location ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1022
SYSTEM
Stuttgart
Q1022
(Q1745204,P937,c(Q56061))
action filter_type
action find
entity Q1745204
relation P937
type Q56061
The work location of Klaus Hentschel is in [ANSWER]
['Q1745204', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1745204 property:P937 ?x . ?x rdf:type ontology:Q56061 }
Stuttgart
The work location of Klaus Hentschel is in Stuttgart
Stuttgart
action filter_type
action find
entity Klaus Hentschel
relation work location
type administrative territorial entity
['Klaus Hentschel', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Klaus_Hentschel property:work_location ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1745204
P21
Q290
USER
Which sex does Klaus Hentschel belong to ?
(Q1745204,P21,c(Q290))
action filter_type
action find
entity Q1745204
relation P21
type Q290
['Q1745204', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q1745204 property:P21 ?o . ?o rdf:type ontology:Q290 }
Klaus Hentschel
action filter_type
action find
entity Klaus Hentschel
relation gender
type sex
['Klaus Hentschel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Klaus_Hentschel property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1745204,P21,c(Q290))
action filter_type
action find
entity Q1745204
relation P21
type Q290
Klaus Hentschel belongs to [ANSWER]
['Q1745204', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q1745204 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
Klaus Hentschel belongs to male
male
action filter_type
action find
entity Klaus Hentschel
relation gender
type sex
['Klaus Hentschel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Klaus_Hentschel property:gender ?o . ?o rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q1445650 Q56061
USER
How many administrative territories have around 1 people and holidays as their patron saint ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?a ) WHERE { ?y rdf:type ?i . VALUES ( ?i ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?w } . FILTER ( ?a = 1 ) }
action count
action approx
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
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?a ) WHERE { ?y rdf:type ?i . VALUES ( ?i ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?w } . FILTER ( ?a = 1 ) }
[]
common name holiday administrative territorial entity
SYSTEM
95
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?a ) WHERE { ?y rdf:type ?i . VALUES ( ?i ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?w } . FILTER ( ?a = 1 ) }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
95
action count
action approx
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
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?a ) WHERE { ?y rdf:type ?i . VALUES ( ?i ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?w } . FILTER ( ?a = 1 ) }
[]