Simple Question (Direct)
Simple Question
Q21948460
P47
Q20667921
USER
Which french administrative divisions have a shared border with Saint-Thégonnec-Loc-Eguiner ?
(Q21948460,P47,c(Q20667921))
action filter_type
action find
entity Q21948460
relation P47
type Q20667921
['Q21948460', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q21948460 property:P47 ?v . ?v rdf:type ontology:Q20667921 }
Saint-Thégonnec-Loc-Eguiner
action filter_type
action find
entity Saint-Thégonnec-Loc-Eguiner
relation shares border with
type type of french administrative division
['Saint-Thégonnec-Loc-Eguiner', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Saint-Thégonnec-Loc-Eguiner property:shares_border_with ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q328746 Q495496 Q475506
SYSTEM
Taulé, Plounéour-Ménez, Guiclan
Q226649 Q475828 Q475506 Q384471 Q495496 Q328746 Q221633
(Q21948460,P47,c(Q20667921))
action filter_type
action find
entity Q21948460
relation P47
type Q20667921
[ANSWERS] have a shared border with Saint-Thégonnec-Loc-Eguiner
['Q21948460', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q21948460 property:P47 ?v . ?v rdf:type ontology:Q20667921 }
Loc-Eguiner-Saint-Thégonnec Pleyber-Christ Guiclan Guimiliau Plounéour-Ménez Taulé Sainte-Sève
Taulé, Plounéour-Ménez and Guiclan have a shared border with Saint-Thégonnec-Loc-Eguiner
Taulé Plounéour-Ménez Guiclan
action filter_type
action find
entity Saint-Thégonnec-Loc-Eguiner
relation shares border with
type type of french administrative division
['Saint-Thégonnec-Loc-Eguiner', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Saint-Thégonnec-Loc-Eguiner property:shares_border_with ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q328746
P36
Q20667921
USER
Which french administrative division has that one as its administrative centre ?
(c(Q20667921),P36,Q328746)
action filter_type
action find_reverse
entity Q328746
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q328746']
SELECT DISTINCT ?j WHERE { ?j property:P36 resource:Q328746 . ?j rdf:type ontology:Q20667921 }
Taulé
action filter_type
action find_reverse
entity Taulé
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Taulé']
SELECT DISTINCT ?j WHERE { ?j property:capital resource:Taulé . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q475506
SYSTEM
Did you mean Guiclan ?
Q328746 Q495496 Q475506
(c(Q20667921),P36,Q328746) (c(Q20667921),P36,Q495496) (c(Q20667921),P36,Q475506)
[ANSWER]
[{'concept': 'Q20667921'}, 'P36', 'Q328746'] [{'concept': 'Q20667921'}, 'P36', 'Q495496'] [{'concept': 'Q20667921'}, 'P36', 'Q475506']
SELECT DISTINCT ?j WHERE { ?j property:P36 resource:Q328746 . ?j rdf:type ontology:Q20667921 }
Taulé Plounéour-Ménez Guiclan
Did you mean Guiclan ?
Guiclan
[{'concept': 'type of french administrative division'}, 'capital', 'Taulé'] [{'concept': 'type of french administrative division'}, 'capital', 'Plounéour-Ménez'] [{'concept': 'type of french administrative division'}, 'capital', 'Guiclan']
SELECT DISTINCT ?j WHERE { ?j property:capital resource:Taulé . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
No, I meant Taulé. Could you tell me the answer for that?
(c(Q20667921),P36,Q328746)
Q328746
[{'concept': 'Q20667921'}, 'P36', 'Q328746']
[{'concept': 'type of french administrative division'}, 'capital', 'Taulé']
[]
Q1727574
SYSTEM
canton of Taulé
Q1727574
(c(Q20667921),P36,Q328746)
action filter_type
action find_reverse
entity Q328746
relation P36
type Q20667921
The [ANSWER] has that one as its administrative centre
[{'concept': 'Q20667921'}, 'P36', 'Q328746']
SELECT DISTINCT ?j WHERE { ?j property:P36 resource:Q328746 . ?j rdf:type ontology:Q20667921 }
canton of Taulé
The canton of Taulé has that one as its administrative centre
canton of Taulé
action filter_type
action find_reverse
entity Taulé
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Taulé']
SELECT DISTINCT ?j WHERE { ?j property:capital resource:Taulé . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1727574 Q328746
P1376
Q20667921
USER
Is Taulé the capital of that one ?
(Q328746,P1376,Q1727574)
action is_in
entity Q1727574
action find
entity Q328746
relation P1376
['Q328746', 'P1376', 'Q1727574']
ASK WHERE { resource:Q328746 property:P1376 resource:Q1727574 }
canton of Taulé Taulé
action is_in
entity canton of Taulé
action find
entity Taulé
relation capital of
['Taulé', 'capital of', 'canton of Taulé']
ASK WHERE { resource:Taulé property:capital_of resource:canton_of_Taulé }
[]
type of french administrative division
SYSTEM
YES
(Q328746,P1376,Q1727574)
action is_in
entity Q1727574
action find
entity Q328746
relation P1376
[ANSWER]
['Q328746', 'P1376', 'Q1727574']
ASK WHERE { resource:Q328746 property:P1376 resource:Q1727574 }
Yes
action is_in
entity canton of Taulé
action find
entity Taulé
relation capital of
['Taulé', 'capital of', 'canton of Taulé']
ASK WHERE { resource:Taulé property:capital_of resource:canton_of_Taulé }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q328746 Q40336 Q225621
P17
Q15617994
USER
Is Taulé present in Gravellona Lomellina and Rietberg ?
(Q328746,P17,Q40336) (Q328746,P17,Q225621)
action is_in
entity Q328746
action intersection
action find_reverse
entity Q40336
relation P17
action find_reverse
entity Q225621
relation P17
['Q328746', 'P17', 'Q40336'] ['Q328746', 'P17', 'Q225621']
ASK WHERE { resource:Q328746 property:P17 resource:Q40336 . resource:Q328746 property:P17 resource:Q225621 }
Taulé Gravellona Lomellina Rietberg
action is_in
entity Taulé
action intersection
action find_reverse
entity Gravellona Lomellina
relation country
action find_reverse
entity Rietberg
relation country
['Taulé', 'country', 'Gravellona Lomellina'] ['Taulé', 'country', 'Rietberg']
ASK WHERE { resource:Taulé property:country resource:Gravellona_Lomellina . resource:Taulé property:country resource:Rietberg }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q328746,P17,Q40336) (Q328746,P17,Q225621)
action is_in
entity Q328746
action intersection
action find_reverse
entity Q40336
relation P17
action find_reverse
entity Q225621
relation P17
[ANSWER]
['Q328746', 'P17', 'Q40336'] ['Q328746', 'P17', 'Q225621']
ASK WHERE { resource:Q328746 property:P17 resource:Q40336 . resource:Q328746 property:P17 resource:Q225621 }
No
action is_in
entity Taulé
action intersection
action find_reverse
entity Gravellona Lomellina
relation country
action find_reverse
entity Rietberg
relation country
['Taulé', 'country', 'Gravellona Lomellina'] ['Taulé', 'country', 'Rietberg']
ASK WHERE { resource:Taulé property:country resource:Gravellona_Lomellina . resource:Taulé property:country resource:Rietberg }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q190554 Q21948460
P47 P17
Q15617994
USER
Which administrative territories are Saint-Thégonnec-Loc-Eguiner located in or are bordered by Carpegna ?
OR((Q21948460,P17,c(Q15617994)), (Q190554,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q21948460
relation P17
action find
entity Q190554
relation P47
type Q15617994
{'OR': [['Q21948460', 'P17', {'concept': 'Q15617994'}], ['Q190554', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q21948460 property:P17 ?g } UNION { resource:Q190554 property:P47 ?g } } . ?g rdf:type ontology:Q15617994 }
Carpegna Saint-Thégonnec-Loc-Eguiner
action filter_type
action union
action find
entity Saint-Thégonnec-Loc-Eguiner
relation country
action find
entity Carpegna
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Saint-Thégonnec-Loc-Eguiner', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Carpegna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Saint-Thégonnec-Loc-Eguiner property:country ?g } UNION { resource:Carpegna property:shares_border_with ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q493800 Q207395 Q190409 Q111878 Q207500 Q207489 Q52099 Q206927 Q207099
SYSTEM
France, Sant'Angelo in Vado, Montecopiolo, Borgo Pace, Pennabilli, Pietrarubbia, Piandimeleto, Sestino, Frontino, Marche, Mercatello sul Metauro
Q142 Q493800 Q207395 Q190409 Q111878 Q207500 Q207489 Q52099 Q206927 Q207099
OR((Q21948460,P17,c(Q15617994)), (Q190554,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q21948460
relation P17
action find
entity Q190554
relation P47
type Q15617994
[ANSWERS]
{'OR': [['Q21948460', 'P17', {'concept': 'Q15617994'}], ['Q190554', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q21948460 property:P17 ?g } UNION { resource:Q190554 property:P47 ?g } } . ?g rdf:type ontology:Q15617994 }
France Sant'Angelo in Vado Montecopiolo Borgo Pace Pennabilli Pietrarubbia Piandimeleto Sestino Frontino, Marche Mercatello sul Metauro
France Sant'Angelo in Vado Montecopiolo Borgo Pace Pennabilli Pietrarubbia Piandimeleto Sestino Frontino, Marche Mercatello sul Metauro
action filter_type
action union
action find
entity Saint-Thégonnec-Loc-Eguiner
relation country
action find
entity Carpegna
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Saint-Thégonnec-Loc-Eguiner', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Carpegna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Saint-Thégonnec-Loc-Eguiner property:country ?g } UNION { resource:Carpegna property:shares_border_with ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P417
Q502895 Q1445650 Q15617994
USER
Which administrative territories have adopted min number of people or holidays as patron saint ?
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action argmin
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?i ) { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?q ) WHERE { { ?x rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q502895 . ?x property:P417 ?e } UNION { ?e rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q15617994 . ?x property:P417 ?e } } GROUP BY ?x } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?b ) WHERE { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?d } . FILTER ( ?b = ?i ) }
action argmin
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?i ) { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?q ) WHERE { { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:common_name . ?x property:patron_saint ?e } UNION { ?e rdf:type ontology:holiday . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:patron_saint ?e } } GROUP BY ?x } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?b ) WHERE { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?d } . FILTER ( ?b = ?i ) }
[]
common name holiday designation for an administrative territorial entity
Q155 Q478277 Q13619
SYSTEM
Brazil, Castiglione di Sicilia, Cosenza
Q51179 Q265483 Q18339 Q268902 Q124005 Q43005 Q43000 Q39633 Q56075 Q42950 Q386898 Q490936 Q20203 Q9525 Q9520 Q18022 Q18348 Q283857 Q112226 Q18029 Q206966 Q155 Q42896 Q216492 Q490770 Q17268 Q54612 Q9065 Q54617 Q267241 Q42974 Q390108 Q51202 Q54751 Q58890 Q51370 Q42110 Q224813 Q252343 Q103999 Q52624 Q50134 Q478277 Q17821 Q188499 Q54585 Q95069 Q19277 Q186538 Q294805 Q18075 Q283697 Q39263 Q100404 Q9569 Q20387 Q34519 Q42777 Q198320 Q34694 Q9105 Q39835 Q46357 Q111415 Q56048 Q490412 Q39910 Q22170 Q58719 Q490907 Q265588 Q244048 Q94779 Q53946 Q10234 Q10231 Q10339 Q53492 Q40336 Q53881 Q295289 Q53883 Q42300 Q13649 Q25175 Q53288 Q17811 Q50165 Q265498 Q18088 Q1465 Q270578 Q53835 Q478925 Q285110 Q430988 Q35220 Q91160 Q111602 Q242710 Q216853 Q58461 Q20353 Q9435 Q20056 Q20435 Q51442 Q117471 Q36471 Q53304 Q17350 Q53909 Q271011 Q53903 Q18382 Q20128 Q23285 Q52026 Q72272 Q42343 Q326968 Q42266 Q42260 Q10200 Q24896 Q53876 Q207395 Q103768 Q20244 Q46746 Q42744 Q100094 Q298424 Q20405 Q83083 Q493482 Q39912 Q22182 Q42512 Q52191 Q340908 Q34386 Q72732 Q101648 Q391349 Q51274 Q52132 Q54705 Q91228 Q53355 Q9447 Q52102 Q53957 Q54673 Q54672 Q42963 Q124979 Q218027 Q53686 Q200925 Q18394 Q72712 Q23706 Q20530 Q42318 Q39862 Q54516 Q17804 Q53511 Q20431 Q54685 Q20184 Q283554 Q477618 Q46673 Q51358 Q81151 Q39227 Q48092 Q42557 Q53995 Q56085 Q53260 Q17796 Q18388 Q41077 Q55054 Q80655 Q52146 Q53508 Q40913 Q25187 Q25189 Q168551 Q22216 Q101251 Q9493 Q286671 Q390646 Q82755 Q23592 Q52038 Q23178 Q288273 Q54643 Q496978 Q46968 Q10211 Q16337 Q326780 Q100070 Q34579 Q20503 Q267032 Q382482 Q55017 Q51360 Q43037 Q53212 Q185748 Q51460 Q20170 Q102781 Q52179 Q58549 Q51926 Q23232 Q42629 Q54636 Q496936 Q105325 Q46870 Q91243 Q51812 Q72708 Q270613 Q19937 Q42249 Q42367 Q54699 Q54591 Q20191 Q46833 Q42391 Q386350 Q17378 Q42565 Q47046 Q19944 Q13619 Q341096 Q382223 Q53397 Q42403 Q56091 Q56090 Q53159 Q53152 Q39070 Q54035 Q80851 Q54034 Q103297 Q43040 Q40964 Q112019 Q39933 Q224176 Q54723 Q477800 Q19915 Q46282 Q13320 Q53732 Q34791 Q20389 Q59269 Q59265 Q20585 Q42208 Q53824 Q9028 Q34638 Q40094 Q34703 Q23648 Q9187 Q111147 Q488240 Q49603 Q52953 Q20299 Q39849 Q50079 Q9428 Q9336
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action argmin
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
[ANSWERS] have adopted min number of people or holidays as patron saint
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?i ) { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?q ) WHERE { { ?x rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q502895 . ?x property:P417 ?e } UNION { ?e rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q15617994 . ?x property:P417 ?e } } GROUP BY ?x } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?b ) WHERE { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?d } . FILTER ( ?b = ?i ) }
Altino, Abruzzo Campomorone Aisone Diano Castello Falconara Marittima Sesto San Giovanni Lomagna Cairate Monsampolo del Tronto San Martino in Strada Nughedu Santa Vittoria Belmonte Mezzagno Montemale di Cuneo Osasio Orio Canavese Bioglio Bagnasco Decimoputzu Vobarno Callabiana Gabicce Mare Brazil Albairate Borgo a Mozzano San Giuseppe Jato Belforte Monferrato Gerace Borgomasino Laganadi Favale di Malvaro Cesano Boscone Anela Castiglione Messer Marino Zaccanopoli Sant'Angelo d'Alife Manoppello Bellinzago Lombardo Lampedusa e Linosa Eppan an der Weinstraße Chiari Noepoli Rocca di Botte Castiglione di Sicilia Mombaldone Castel del Piano Calanna Antegnate Cerignola Arzachena Gadoni Graglia Burcei Sernio Comun Nuovo Pianezza Poggio a Caiano Maserà di Padova Abbiategrasso Ziano di Fiemme Fiesso Umbertiano Buriasco Bianzone Breganze Polpenazze del Garda Castorano Priolo Gargallo Azzio Cavaglio d'Agogna Mondragone Scillato Crocefieschi Argegno Castel San Pietro Terme Rende Rocca Canavese Rivoli Venaria Reale Andali Gravellona Lomellina Fiumefreddo Bruzio Noragugume Frascineto Comazzo Nuoro Postua Mortegliano Frinco Trasacco Ceranesi Mottalciata Feltre Calizzano Belmonte Calabro Trecastagni Seulo Alessandria della Rocca Montjovet Cetona Rezzato Guidonia Montecelio Camaiore Camigliano Piobesi d'Alba Lugnacco Frabosa Soprana Sale delle Langhe Colledara Trevi nel Lazio Pompei Pasian di Prato Cremolino Mangone Osiglia Malito Bra Magliano Alpi Cannero Riviera Montemesola Monte di Procida Guidizzolo Tenno, Trentino Cervignano d'Adda Montevecchia Porte Borgo d'Ale Domanico Montecopiolo Capriano del Colle Murello Susegana Spino d'Adda San Felice sul Panaro Pergine Valsugana Roascio Monte San Giusto Librizzi Usmate Velate Colazza Vizzolo Predabissi Sannicola Luogosanto Trebaseleghe Vico Equense Telgate Santa Maria Coghinas Roccamontepiano Collepasso Drapia Monteriggioni San Giorgio di Nogaro Lusigliè Subbiano San Cosmo Albanese Sinopoli Siderno Senna Lodigiana Serra San Quirico Zoagli San Floro Lona-Lases Canale Torre Annunziata Trasquera Verduno Terranova dei Passerini Menarola San Mauro Marchesato Cortiglione Conflenti Rossana Terranova Sappo Minulio Monasterolo Casotto Armungia Resuttano Spresiano Civitella Casanova Ogliastro Cilento Ronco Briantino Cologna Veneta Pandino Saracena Palmiano Flaibano Cisterna d'Asti Brossasco Lavena Ponte Tresa Mirabella Eclano Bellizzi Guagnano Cerva Caiolo Rimella Riva Valdobbia Caselle Landi Dormelletto Montello, Lombardy Monteu da Po Santadi Cargeghe Londa, Tuscany Gurro Statte Bisceglie Serrenti Roghudi Roccapalumba Noale Quagliuzzo Novi Ligure Strigno Montefiorino Arre Sommariva del Bosco Santo Stefano d'Aveto Aidomaggiore Casalbore Corvara Annone di Brianza Aiello del Friuli Sant'Elia a Pianisi Pietracamela Martiniana Po Gragnano Trebbiense Porto Cesareo Castel Campagnano Faeto Bannio Anzino Parabiago Platì Sciara Nuvolento Bardolino Monteroni d'Arbia Alberobello Terzigno Celle Ligure Cerretto Langhe Mulazzano Valera Fratta Brognaturo Caraffa del Bianco Monforte d'Alba Albettone Airuno Masullas Malvicino Oggiono Silea Ceva Cosenza Trinità d'Agultu e Vignola Romana, Sardinia Villa Vicentina Acquanegra Cremonese Venarotta Spinetoli Cavasso Nuovo Azzano Decimo Andalo Valtellino Verbicaro Celle di Bulgheria Vaccarizzo Albanese Vicopisano Secugnago Rogolo Sirmione Cadrezzate Longone Sabino Nardodipace Vallelunga Pratameno Castellino Tanaro Castel d'Azzano Savona Tiriolo Aymavilles Montemurlo Montelparo Montefalcone Appennino Villanova Mondovì Malagnino Alessandria del Carretto Balme Arquà Petrarca Morbegno Torreglia Montecrestese Carmagnola Carpineti Lentini Ponte Buggianese Alfonsine Paroldo Robbio Celano Locana Druento
Brazil, Castiglione di Sicilia and Cosenza have adopted min number of people or holidays as patron saint
Brazil Castiglione di Sicilia Cosenza
action argmin
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?i ) { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?q ) WHERE { { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:common_name . ?x property:patron_saint ?e } UNION { ?e rdf:type ontology:holiday . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:patron_saint ?e } } GROUP BY ?x } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?b ) WHERE { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?d } . FILTER ( ?b = ?i ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that administrative territory present in ?
(Q478277,P17,c(Q15617994))
['Q478277', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q478277 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Castiglione di Sicilia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Castiglione_di_Sicilia property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
(Q155,P17,c(Q15617994)) (Q478277,P17,c(Q15617994)) (Q13619,P17,c(Q15617994))
[ANSWER]
['Q155', 'P17', {'concept': 'Q15617994'}] ['Q478277', 'P17', {'concept': 'Q15617994'}] ['Q13619', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q478277 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Brazil ?
Brazil
['Brazil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Castiglione di Sicilia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cosenza', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Castiglione_di_Sicilia property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Castiglione di Sicilia. Could you tell me the answer for that?
(Q478277,P17,c(Q15617994))
Q478277
['Q478277', 'P17', {'concept': 'Q15617994'}]
['Castiglione di Sicilia', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q38
(Q478277,P17,c(Q15617994))
[ANSWER]
['Q478277', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q478277 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Italy
1
['Castiglione di Sicilia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Castiglione_di_Sicilia property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P706
Q103817
USER
Which indigenous peoples has its location as Brazil ?
(c(Q103817),P706,Q155)
action filter_type
action find_reverse
entity Q155
relation P706
type Q103817
[{'concept': 'Q103817'}, 'P706', 'Q155']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q103817 . ?m property:P706 resource:Q155 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation located on terrain feature
type indigenous peoples
[{'concept': 'indigenous peoples'}, 'located on terrain feature', 'Brazil']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:indigenous_peoples . ?m property:located_on_terrain_feature resource:Brazil }
[]
indigenous peoples
Q3817631
SYSTEM
Kwaza people
Q3817631
(c(Q103817),P706,Q155)
action filter_type
action find_reverse
entity Q155
relation P706
type Q103817
People [ANSWER] has its location as Brazil
[{'concept': 'Q103817'}, 'P706', 'Q155']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q103817 . ?m property:P706 resource:Q155 }
Kwaza people
People Kwaza people has its location as Brazil
Kwaza people
action filter_type
action find_reverse
entity Brazil
relation located on terrain feature
type indigenous peoples
[{'concept': 'indigenous peoples'}, 'located on terrain feature', 'Brazil']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:indigenous_peoples . ?m property:located_on_terrain_feature resource:Brazil }
[]