Simple Question (Direct)
Simple Question
Q11928881
P1412
Q34770
USER
Which language is spoken by Josep Quero i Molares ?
(Q11928881,P1412,c(Q34770))
action filter_type
action find
entity Q11928881
relation P1412
type Q34770
['Q11928881', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q34770 . resource:Q11928881 property:P1412 ?n }
Josep Quero i Molares
action filter_type
action find
entity Josep Quero i Molares
relation languages spoken, written or signed
type language
['Josep Quero i Molares', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:language . resource:Josep_Quero_i_Molares property:languages_spoken,_written_or_signed ?n }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q11928881,P1412,c(Q34770))
action filter_type
action find
entity Q11928881
relation P1412
type Q34770
And [ANSWER] is spoken by Josep Quero i Molares
['Q11928881', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q34770 . resource:Q11928881 property:P1412 ?n }
Spanish
And Spanish is spoken by Josep Quero i Molares
Spanish
action filter_type
action find
entity Josep Quero i Molares
relation languages spoken, written or signed
type language
['Josep Quero i Molares', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:language . resource:Josep_Quero_i_Molares property:languages_spoken,_written_or_signed ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11928881
P106
Q12737077
USER
What does that person do for a living ?
(Q1321,P106,c(Q12737077))
action filter_type
action find
entity Q11928881
relation P106
type Q12737077
['Q1321', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q11928881 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Josep Quero i Molares
action filter_type
action find
entity Josep Quero i Molares
relation occupation
type occupation
['Spanish', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Josep_Quero_i_Molares property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q1321,P106,c(Q12737077))
action filter_type
action find
entity Q11928881
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q1321', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q11928881 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
politician
Politician that person does for a living
politician
action filter_type
action find
entity Josep Quero i Molares
relation occupation
type occupation
['Spanish', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Josep_Quero_i_Molares property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11928881
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q11928881
relation P39
type Q12737077
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q11928881 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Josep Quero i Molares
action filter_type
action find
entity Josep Quero i Molares
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Josep_Quero_i_Molares property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q21620329
SYSTEM
Minister of the Government of Catalonia
Q21620329
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q11928881
relation P39
type Q12737077
[ANSWER] was a position held by that person
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q11928881 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Minister of the Government of Catalonia
Minister of the Government of Catalonia was a position held by that person
Minister of the Government of Catalonia
action filter_type
action find
entity Josep Quero i Molares
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Josep_Quero_i_Molares property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11928881
P937
Q56061
USER
Where did Josep Quero i Molares work ?
(Q11928881,P937,c(Q56061))
action filter_type
action find
entity Q11928881
relation P937
type Q56061
['Q11928881', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q11928881 property:P937 ?l }
Josep Quero i Molares
action filter_type
action find
entity Josep Quero i Molares
relation work location
type administrative territorial entity
['Josep Quero i Molares', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Josep_Quero_i_Molares property:work_location ?l }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q11928881,P937,c(Q56061))
action filter_type
action find
entity Q11928881
relation P937
type Q56061
Josep Quero i Molares worked in [ANSWER]
['Q11928881', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q11928881 property:P937 ?l }
Barcelona
Josep Quero i Molares worked in Barcelona
Barcelona
action filter_type
action find
entity Josep Quero i Molares
relation work location
type administrative territorial entity
['Josep Quero i Molares', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Josep_Quero_i_Molares property:work_location ?l }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P417
Q1445650 Q56061
USER
Which administrative territories have more number of holidays as their patron saint than that administrative territory ?
(c(Q56061),P417,c(Q1445650))
action greater
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_type
action find
entity Q1492
relation P417
type Q56061
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Q1492 property:P417 ?c . ?c rdf:type ontology:Q56061 } } . FILTER ( ?f > ?y ) . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?f ) WHERE { ?n property:P417 ?s . ?n rdf:type ontology:Q56061 . ?s rdf:type ontology:Q1445650 } GROUP BY ?n } }
action greater
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_type
action find
entity Barcelona
relation patron saint
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Barcelona property:patron_saint ?c . ?c rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?f > ?y ) . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?f ) WHERE { ?n property:patron_saint ?s . ?n rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:holiday } GROUP BY ?n } }
[]
holiday administrative territorial entity
Q433066 Q428018 Q495798
SYSTEM
Moos in Passeier, Mölten, Brolo
Q491588 Q495798 Q428018 Q52215 Q433066
(c(Q56061),P417,c(Q1445650))
action greater
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_type
action find
entity Q1492
relation P417
type Q56061
[ANSWERS] have more number of holidays as their patron saint than that administrative territory
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Q1492 property:P417 ?c . ?c rdf:type ontology:Q56061 } } . FILTER ( ?f > ?y ) . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?f ) WHERE { ?n property:P417 ?s . ?n rdf:type ontology:Q56061 . ?s rdf:type ontology:Q1445650 } GROUP BY ?n } }
Camporeale Brolo Mölten Tuglie Moos in Passeier
Moos in Passeier, Mölten and Brolo have more number of holidays as their patron saint than that administrative territory
Moos in Passeier Mölten Brolo
action greater
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_type
action find
entity Barcelona
relation patron saint
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Barcelona property:patron_saint ?c . ?c rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?f > ?y ) . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?f ) WHERE { ?n property:patron_saint ?s . ?n rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:holiday } GROUP BY ?n } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P417
Q502895 Q1445650 Q56061
USER
How many administrative territories have adopted around the same number of people or holidays as patron saint as that administrative territory ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:Q28914 ?p . VALUES ( ?p ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:patron_saint ?p . VALUES ( ?p ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]
common name holiday administrative territorial entity
Comparative|Count over More/Less|Mult. entity type|Clarification
Q428018
SYSTEM
Did you mean Mölten ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:Q28914 ?p . VALUES ( ?p ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
Did you mean Mölten ?
Mölten
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:patron_saint ?p . VALUES ( ?p ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
[]
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))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
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
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]