Simple Question (Direct)
Simple Question
Q7487850
P26
Q502895
USER
Which person is married to Shana Goldberg-Meehan ?
(Q7487850,P26,c(Q502895))
action filter_type
action find
entity Q7487850
relation P26
type Q502895
['Q7487850', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q7487850 property:P26 ?a . ?a rdf:type ontology:Q502895 }
Shana Goldberg-Meehan
action filter_type
action find
entity Shana Goldberg-Meehan
relation spouse
type common name
['Shana Goldberg-Meehan', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Shana_Goldberg-Meehan property:spouse ?a . ?a rdf:type ontology:common_name }
[]
common name
Q7437254
SYSTEM
Scott Silveri
Q7437254
(Q7487850,P26,c(Q502895))
action filter_type
action find
entity Q7487850
relation P26
type Q502895
Is [ANSWER] is married to Shana Goldberg-Meehan
['Q7487850', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q7487850 property:P26 ?a . ?a rdf:type ontology:Q502895 }
Scott Silveri
Is Scott Silveri is married to Shana Goldberg-Meehan
Scott Silveri
action filter_type
action find
entity Shana Goldberg-Meehan
relation spouse
type common name
['Shana Goldberg-Meehan', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Shana_Goldberg-Meehan property:spouse ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7487850
P40
Q502895
USER
Who has Shana Goldberg-Meehan as an offspring ?
(c(Q502895),P40,Q7487850)
action filter_type
action find_reverse
entity Q7487850
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q7487850']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P40 resource:Q7487850 }
Shana Goldberg-Meehan
action filter_type
action find_reverse
entity Shana Goldberg-Meehan
relation child
type common name
[{'concept': 'common name'}, 'child', 'Shana Goldberg-Meehan']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:child resource:Shana_Goldberg-Meehan }
[]
common name
Q932508
SYSTEM
Gary David Goldberg
Q932508
(c(Q502895),P40,Q7487850)
action filter_type
action find_reverse
entity Q7487850
relation P40
type Q502895
[ANSWER] has Shana Goldberg-Meehan as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q7487850']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P40 resource:Q7487850 }
Gary David Goldberg
Gary David Goldberg has Shana Goldberg-Meehan as an offspring
Gary David Goldberg
action filter_type
action find_reverse
entity Shana Goldberg-Meehan
relation child
type common name
[{'concept': 'common name'}, 'child', 'Shana Goldberg-Meehan']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:child resource:Shana_Goldberg-Meehan }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q932508
P20
Q486972
USER
Where did the demise of that person occur ?
(Q932508,P20,c(Q486972))
action filter_type
action find
entity Q932508
relation P20
type Q486972
['Q932508', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?m WHERE { resource:Q932508 property:P20 ?m . ?m rdf:type ontology:Q486972 }
Gary David Goldberg
action filter_type
action find
entity Gary David Goldberg
relation place of death
type human settlement
['Gary David Goldberg', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?m WHERE { resource:Gary_David_Goldberg property:place_of_death ?m . ?m rdf:type ontology:human_settlement }
[]
human settlement
Q1008912
SYSTEM
Montecito
Q1008912
(Q932508,P20,c(Q486972))
action filter_type
action find
entity Q932508
relation P20
type Q486972
The demise of that person occurred in [ANSWER]
['Q932508', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?m WHERE { resource:Q932508 property:P20 ?m . ?m rdf:type ontology:Q486972 }
Montecito
The demise of that person occurred in Montecito
Montecito
action filter_type
action find
entity Gary David Goldberg
relation place of death
type human settlement
['Gary David Goldberg', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?m WHERE { resource:Gary_David_Goldberg property:place_of_death ?m . ?m rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q932508
P106
Q28640 Q12737077
USER
How many professions and occupations are the professions of Gary David Goldberg ?
(Q932508,P106,c(Q28640)) (Q932508,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q932508
relation P106
type Q28640
action filter_type
action find
entity Q932508
relation P106
type Q12737077
['Q932508', 'P106', {'concept': 'Q28640'}] ['Q932508', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { resource:Q932508 property:P106 ?o . ?o rdf:type ontology:Q28640 } UNION { resource:Q932508 property:P106 ?o . ?o rdf:type ontology:Q12737077 } }
Gary David Goldberg
action count
action union
action filter_type
action find
entity Gary David Goldberg
relation occupation
type profession
action filter_type
action find
entity Gary David Goldberg
relation occupation
type occupation
['Gary David Goldberg', 'occupation', {'concept': 'profession'}] ['Gary David Goldberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { resource:Gary_David_Goldberg property:occupation ?o . ?o rdf:type ontology:profession } UNION { resource:Gary_David_Goldberg property:occupation ?o . ?o rdf:type ontology:occupation } }
[]
profession occupation
SYSTEM
3 professions and 2 occupations
Q36180 Q2526255 Q3282637 Q28389 Q578109
(Q932508,P106,c(Q28640)) (Q932508,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q932508
relation P106
type Q28640
action filter_type
action find
entity Q932508
relation P106
type Q12737077
[ANSWER]
['Q932508', 'P106', {'concept': 'Q28640'}] ['Q932508', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { resource:Q932508 property:P106 ?o . ?o rdf:type ontology:Q28640 } UNION { resource:Q932508 property:P106 ?o . ?o rdf:type ontology:Q12737077 } }
writer film director film producer screenwriter television producer
3 professions and 2 occupations
action count
action union
action filter_type
action find
entity Gary David Goldberg
relation occupation
type profession
action filter_type
action find
entity Gary David Goldberg
relation occupation
type occupation
['Gary David Goldberg', 'occupation', {'concept': 'profession'}] ['Gary David Goldberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { resource:Gary_David_Goldberg property:occupation ?o . ?o rdf:type ontology:profession } UNION { resource:Gary_David_Goldberg property:occupation ?o . ?o rdf:type ontology:occupation } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11230048 Q932508
P27 P17
Q15617994
USER
Which administrative territories do Gary David Goldberg belong to or are Okoani Kibosho a part of ?
OR((Q932508,P27,c(Q15617994)), (Q11230048,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q932508
relation P27
action find
entity Q11230048
relation P17
type Q15617994
{'OR': [['Q932508', 'P27', {'concept': 'Q15617994'}], ['Q11230048', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q11230048 property:P17 ?b } UNION { resource:Q932508 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Okoani Kibosho Gary David Goldberg
action filter_type
action union
action find
entity Gary David Goldberg
relation country of citizenship
action find
entity Okoani Kibosho
relation country
type designation for an administrative territorial entity
{'OR': [['Gary David Goldberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Okoani Kibosho', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Okoani_Kibosho property:country ?b } UNION { resource:Gary_David_Goldberg property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q924
SYSTEM
United States of America, Tanzania
Q30 Q924
OR((Q932508,P27,c(Q15617994)), (Q11230048,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q932508
relation P27
action find
entity Q11230048
relation P17
type Q15617994
Gary David Goldberg belong to the [ANSWERS] or are Okoani Kibosho a part of
{'OR': [['Q932508', 'P27', {'concept': 'Q15617994'}], ['Q11230048', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q11230048 property:P17 ?b } UNION { resource:Q932508 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
United States of America Tanzania
Gary David Goldberg belong to the United States of America and Tanzania or are Okoani Kibosho a part of
United States of America Tanzania
action filter_type
action union
action find
entity Gary David Goldberg
relation country of citizenship
action find
entity Okoani Kibosho
relation country
type designation for an administrative territorial entity
{'OR': [['Gary David Goldberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Okoani Kibosho', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Okoani_Kibosho property:country ?b } UNION { resource:Gary_David_Goldberg property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15619164 Q1190554 Q15617994
USER
Which administrative territories have around 1 abstract beings and events as their toponym ?
(c(Q15617994),P138,c(Q15619164)|c(Q1190554))
action approx
action union
action find_tuple_counts
relation P138
type Q15617994
type Q15619164
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
value 1
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q15619164'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ?p WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?u . VALUES ( ?u ) { ( ontology:Q15619164 ) ( ontology:Q1190554 ) } } GROUP BY ?p } }
action approx
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type abstract being
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'abstract being'}, {'concept': 'event'}]]
SELECT DISTINCT ?p WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?u . VALUES ( ?u ) { ( ontology:abstract_being ) ( ontology:event ) } } GROUP BY ?p } }
[]
abstract being event designation for an administrative territorial entity
Q79 Q1393469 Q1508919
SYSTEM
Egypt, Jemmapes, Marengo
Q1508919 Q1452646 Q79 Q1393469
(c(Q15617994),P138,c(Q15619164)|c(Q1190554))
action approx
action union
action find_tuple_counts
relation P138
type Q15617994
type Q15619164
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
value 1
[ANSWERS] have around 1 abstract beings and events as their toponym
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q15619164'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ?p WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?u . VALUES ( ?u ) { ( ontology:Q15619164 ) ( ontology:Q1190554 ) } } GROUP BY ?p } }
Marengo Montenotte Egypt Jemmapes
Egypt, Jemmapes and Marengo have around 1 abstract beings and events as their toponym
Egypt Jemmapes Marengo
action approx
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type abstract being
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'abstract being'}, {'concept': 'event'}]]
SELECT DISTINCT ?p WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?u . VALUES ( ?u ) { ( ontology:abstract_being ) ( ontology:event ) } } GROUP BY ?p } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P417
Q502895 Q1445650 Q15617994
USER
Which administrative territories have min number of people and holidays as their 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 ?q WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?z WHERE { VALUES ( ?a ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?c rdf:type ?a } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?q WHERE { { ?q rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q502895 . ?q property:P417 ?w } UNION { ?q property:P417 ?w . ?q rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1445650 } } GROUP BY ?q } . FILTER ( ?k = ?d ) }
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 ?q WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?z WHERE { VALUES ( ?a ) { ( ontology:common_name ) ( ontology:holiday ) } . ?c rdf:type ?a } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?q WHERE { { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:common_name . ?q property:patron_saint ?w } UNION { ?q property:patron_saint ?w . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:holiday } } GROUP BY ?q } . FILTER ( ?k = ?d ) }
[]
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 min number of people and holidays as their patron saint
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?z WHERE { VALUES ( ?a ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?c rdf:type ?a } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?q WHERE { { ?q rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q502895 . ?q property:P417 ?w } UNION { ?q property:P417 ?w . ?q rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1445650 } } GROUP BY ?q } . FILTER ( ?k = ?d ) }
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 min number of people and holidays as their 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 ?q WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?z WHERE { VALUES ( ?a ) { ( ontology:common_name ) ( ontology:holiday ) } . ?c rdf:type ?a } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?q WHERE { { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:common_name . ?q property:patron_saint ?w } UNION { ?q property:patron_saint ?w . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:holiday } } GROUP BY ?q } . FILTER ( ?k = ?d ) }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories are the countries of origin of more number of releases than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|More/Less|Single entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Brazil ?
Brazil
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q30 Q159
SYSTEM
Italy, United States of America, Russia
Q668 Q142 Q55 Q145 Q148 Q159 Q43 Q884 Q33 Q31 Q30 Q34 Q38 Q843 Q17 Q902 Q29
(c(Q2031291),P495,c(Q15617994))
[ANSWERS] are the countries of origin of more number of releases than that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
India France Netherlands United Kingdom People's Republic of China Russia Turkey South Korea Finland Belgium United States of America Sweden Italy Pakistan Japan Bangladesh Spain
Italy, United States of America and Russia are the countries of origin of more number of releases than that administrative territory
Italy United States of America Russia
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]