Simple Question (Direct)
Simple Question
Q586261
P19
Q56061
USER
Which administrative territory is the place of birth of Gábor Szentkatolnai Bálint ?
(Q586261,P19,c(Q56061))
action filter_type
action find
entity Q586261
relation P19
type Q56061
['Q586261', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q586261 property:P19 ?z }
Gábor Szentkatolnai Bálint
action filter_type
action find
entity Gábor Szentkatolnai Bálint
relation place of birth
type administrative territorial entity
['Gábor Szentkatolnai Bálint', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Gábor_Szentkatolnai_Bálint property:place_of_birth ?z }
[]
administrative territorial entity
Q1077241
SYSTEM
Catalina
Q1077241
(Q586261,P19,c(Q56061))
action filter_type
action find
entity Q586261
relation P19
type Q56061
[ANSWER] is the place of birth of Gábor Szentkatolnai Bálint
['Q586261', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q586261 property:P19 ?z }
Catalina
Catalina is the place of birth of Gábor Szentkatolnai Bálint
Catalina
action filter_type
action find
entity Gábor Szentkatolnai Bálint
relation place of birth
type administrative territorial entity
['Gábor Szentkatolnai Bálint', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Gábor_Szentkatolnai_Bálint property:place_of_birth ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q586261
P106
Q12737077
USER
What is the profession of Gábor Szentkatolnai Bálint ?
(Q586261,P106,c(Q12737077))
action filter_type
action find
entity Q586261
relation P106
type Q12737077
['Q586261', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q586261 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Gábor Szentkatolnai Bálint
action filter_type
action find
entity Gábor Szentkatolnai Bálint
relation occupation
type occupation
['Gábor Szentkatolnai Bálint', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Gábor_Szentkatolnai_Bálint property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q14467526
SYSTEM
linguist
Q14467526
(Q586261,P106,c(Q12737077))
action filter_type
action find
entity Q586261
relation P106
type Q12737077
The profession of Gábor Szentkatolnai Bálint is a [ANSWER]
['Q586261', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q586261 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
linguist
The profession of Gábor Szentkatolnai Bálint is a linguist
linguist
action filter_type
action find
entity Gábor Szentkatolnai Bálint
relation occupation
type occupation
['Gábor Szentkatolnai Bálint', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Gábor_Szentkatolnai_Bálint property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2560644
Q12737077
USER
And also tell me about Werly Fairburn?
(Q2560644,P106,c(Q12737077))
action filter_type
action find
entity Q2560644
relation P106
type Q12737077
['Q2560644', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2560644 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Werly Fairburn
action filter_type
action find
entity Werly Fairburn
relation occupation
type occupation
['Werly Fairburn', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Werly_Fairburn property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q753110 Q177220
SYSTEM
songwriter, singer
Q753110 Q177220
(Q2560644,P106,c(Q12737077))
action filter_type
action find
entity Q2560644
relation P106
type Q12737077
[ANSWERS]
['Q2560644', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2560644 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
songwriter singer
songwriter singer
action filter_type
action find
entity Werly Fairburn
relation occupation
type occupation
['Werly Fairburn', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Werly_Fairburn property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q583326 Q2560644
P27
Q15617994
USER
Which administrative territories do Werly Fairburn or Donal MacIntyre belong to ?
OR((Q2560644,P27,c(Q15617994)), (Q583326,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2560644
relation P27
action find
entity Q583326
relation P27
type Q15617994
{'OR': [['Q2560644', 'P27', {'concept': 'Q15617994'}], ['Q583326', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q2560644 property:P27 ?u } UNION { resource:Q583326 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Donal MacIntyre Werly Fairburn
action filter_type
action union
action find
entity Werly Fairburn
relation country of citizenship
action find
entity Donal MacIntyre
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Werly Fairburn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Donal MacIntyre', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Werly_Fairburn property:country_of_citizenship ?u } UNION { resource:Donal_MacIntyre property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q27
SYSTEM
United States of America, Ireland
Q30 Q27
OR((Q2560644,P27,c(Q15617994)), (Q583326,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2560644
relation P27
action find
entity Q583326
relation P27
type Q15617994
Werly Fairburn or Donal MacIntyre belong to the [ANSWERS]
{'OR': [['Q2560644', 'P27', {'concept': 'Q15617994'}], ['Q583326', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q2560644 property:P27 ?u } UNION { resource:Q583326 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
United States of America Ireland
Werly Fairburn or Donal MacIntyre belong to the United States of America and Ireland
United States of America Ireland
action filter_type
action union
action find
entity Werly Fairburn
relation country of citizenship
action find
entity Donal MacIntyre
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Werly Fairburn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Donal MacIntyre', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Werly_Fairburn property:country_of_citizenship ?u } UNION { resource:Donal_MacIntyre property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q11379264 Q30
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with United States of America and are Yoshitarō Isaka an inhabitant of ?
AND((Q30,P530,c(Q15617994)), (Q11379264,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q30
relation P530
action find
entity Q11379264
relation P27
type Q15617994
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q11379264', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { resource:Q30 property:P530 ?q . resource:Q11379264 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Yoshitarō Isaka United States of America
action filter_type
action intersection
action find
entity United States of America
relation diplomatic relation
action find
entity Yoshitarō Isaka
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Yoshitarō Isaka', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:United_States_of_America property:diplomatic_relation ?q . resource:Yoshitarō_Isaka property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
AND((Q30,P530,c(Q15617994)), (Q11379264,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q30
relation P530
action find
entity Q11379264
relation P27
type Q15617994
[ANSWER] holds diplomatic relationship with United States of America and are Yoshitarō Isaka an inhabitant of
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q11379264', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { resource:Q30 property:P530 ?q . resource:Q11379264 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Japan
Japan holds diplomatic relationship with United States of America and are Yoshitarō Isaka an inhabitant of
Japan
action filter_type
action intersection
action find
entity United States of America
relation diplomatic relation
action find
entity Yoshitarō Isaka
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Yoshitarō Isaka', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:United_States_of_America property:diplomatic_relation ?q . resource:Yoshitarō_Isaka property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q80574
P417
Q1445650 Q502895 Q15617994
USER
How many administrative territories are lesser number of holidays or people a patron saint of than Aquara ?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action less
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q80574
relation P417
type Q1445650
type Q502895
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?m WHERE { VALUES ( ?l ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?q rdf:type ?l } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Q80574 property:P417 ?t . { VALUES ( ?h ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?t rdf:type ?h } } } . FILTER ( ?u < ?b ) }
Aquara
action count
action less
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Aquara
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?m WHERE { VALUES ( ?l ) { ( ontology:common_name ) ( ontology:holiday ) } . ?q rdf:type ?l } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Aquara property:patron_saint ?t . { VALUES ( ?h ) { ( ontology:holiday ) ( ontology:common_name ) } . ?t rdf:type ?h } } } . FILTER ( ?u < ?b ) }
[]
holiday common name designation for an administrative territorial entity
SYSTEM
296
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(Q1445650)|c(Q502895))
action count
action less
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q80574
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?m WHERE { VALUES ( ?l ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?q rdf:type ?l } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Q80574 property:P417 ?t . { VALUES ( ?h ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?t rdf:type ?h } } } . FILTER ( ?u < ?b ) }
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
296
action count
action less
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Aquara
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?m WHERE { VALUES ( ?l ) { ( ontology:common_name ) ( ontology:holiday ) } . ?q rdf:type ?l } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Aquara property:patron_saint ?t . { VALUES ( ?h ) { ( ontology:holiday ) ( ontology:common_name ) } . ?t rdf:type ?h } } } . FILTER ( ?u < ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q244185
P417
Q1445650 Q502895 Q15617994
USER
And also tell me about Cadorago?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action less
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q244185
relation P417
type Q1445650
type Q502895
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) ?x WHERE { { ?x property:P417 ?o . ?o rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q15617994 } UNION { ?x property:P417 ?o . ?o rdf:type ontology:Q502895 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { resource:Q244185 property:P417 ?m . { { ?m rdf:type ontology:Q1445650 } UNION { ?m rdf:type ontology:Q502895 } } } } . FILTER ( ?y < ?p ) }
Cadorago
action count
action less
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Cadorago
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) ?x WHERE { { ?x property:patron_saint ?o . ?o rdf:type ontology:holiday . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:patron_saint ?o . ?o rdf:type ontology:common_name . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { resource:Cadorago property:patron_saint ?m . { { ?m rdf:type ontology:holiday } UNION { ?m rdf:type ontology:common_name } } } } . FILTER ( ?y < ?p ) }
[]
holiday common name designation for an administrative territorial entity
SYSTEM
296
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(Q1445650)|c(Q502895))
action count
action less
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q244185
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) ?x WHERE { { ?x property:P417 ?o . ?o rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q15617994 } UNION { ?x property:P417 ?o . ?o rdf:type ontology:Q502895 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { resource:Q244185 property:P417 ?m . { { ?m rdf:type ontology:Q1445650 } UNION { ?m rdf:type ontology:Q502895 } } } } . FILTER ( ?y < ?p ) }
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
296
action count
action less
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Cadorago
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) ?x WHERE { { ?x property:patron_saint ?o . ?o rdf:type ontology:holiday . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:patron_saint ?o . ?o rdf:type ontology:common_name . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { resource:Cadorago property:patron_saint ?m . { { ?m rdf:type ontology:holiday } UNION { ?m rdf:type ontology:common_name } } } } . FILTER ( ?y < ?p ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17
P710
Q484652
USER
What event did Japan particiate in ?
(c(Q484652),P710,Q17)
action filter_type
action find_reverse
entity Q17
relation P710
type Q484652
[{'concept': 'Q484652'}, 'P710', 'Q17']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q484652 . ?y property:P710 resource:Q17 }
Japan
action filter_type
action find_reverse
entity Japan
relation participant
type international organization
[{'concept': 'international organization'}, 'participant', 'Japan']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:international_organization . ?y property:participant resource:Japan }
[]
international organization
Q10287157
SYSTEM
G6
Q10287157
(c(Q484652),P710,Q17)
action filter_type
action find_reverse
entity Q17
relation P710
type Q484652
Japan particiated with [ANSWER]
[{'concept': 'Q484652'}, 'P710', 'Q17']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q484652 . ?y property:P710 resource:Q17 }
G6
Japan particiated with G6
G6
action filter_type
action find_reverse
entity Japan
relation participant
type international organization
[{'concept': 'international organization'}, 'participant', 'Japan']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:international_organization . ?y property:participant resource:Japan }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with atmost 4 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 4
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:P530 ?o . ?s rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?g <= 4 ) }
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:diplomatic_relation ?o . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?g <= 4 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
132
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q45 Q792 Q790 Q954 Q889 Q884 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q32 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q221 Q96 Q229 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 4
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:P530 ?o . ?s rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?g <= 4 ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad Portugal El Salvador Haiti Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Luxembourg Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
132
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:diplomatic_relation ?o . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?g <= 4 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q27
P463
Q43229 Q484652
USER
How many organizations or international organizations were Ireland a member of ?
(Q27,P463,c(Q43229)) (Q27,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q27
relation P463
type Q43229
action filter_type
action find
entity Q27
relation P463
type Q484652
['Q27', 'P463', {'concept': 'Q43229'}] ['Q27', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u rdf:type ?g . VALUES ( ?g ) { ( ontology:Q43229 ) ( ontology:Q484652 ) } }
Ireland
action count
action union
action filter_type
action find
entity Ireland
relation member of
type organization
action filter_type
action find
entity Ireland
relation member of
type international organization
['Ireland', 'member of', {'concept': 'organization'}] ['Ireland', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u rdf:type ?g . VALUES ( ?g ) { ( ontology:organization ) ( ontology:international_organization ) } }
[]
organization international organization
SYSTEM
11
Q81299 Q191384 Q41550 Q1065 Q656801 Q42262 Q899770 Q188822 Q7825 Q827525 Q1043527
(Q27,P463,c(Q43229)) (Q27,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q27
relation P463
type Q43229
action filter_type
action find
entity Q27
relation P463
type Q484652
[ANSWER]
['Q27', 'P463', {'concept': 'Q43229'}] ['Q27', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u rdf:type ?g . VALUES ( ?g ) { ( ontology:Q43229 ) ( ontology:Q484652 ) } }
Organization for Security and Co-operation in Europe International Bank for Reconstruction and Development Organisation for Economic Co-operation and Development United Nations International Finance Corporation European Space Agency International Centre for Settlement of Investment Disputes Asian Development Bank World Trade Organization International Development Association Multilateral Investment Guarantee Agency
11
action count
action union
action filter_type
action find
entity Ireland
relation member of
type organization
action filter_type
action find
entity Ireland
relation member of
type international organization
['Ireland', 'member of', {'concept': 'organization'}] ['Ireland', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u rdf:type ?g . VALUES ( ?g ) { ( ontology:organization ) ( ontology:international_organization ) } }
[]