Simple Question (Direct)
Simple Question
Q446015
P136
Q151885
USER
What can be considered as category for Nina Kinert ?
(Q446015,P136,c(Q151885))
action filter_type
action find
entity Q446015
relation P136
type Q151885
['Q446015', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?m WHERE { resource:Q446015 property:P136 ?m . ?m rdf:type ontology:Q151885 }
Nina Kinert
action filter_type
action find
entity Nina Kinert
relation genre
type concept
['Nina Kinert', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?m WHERE { resource:Nina_Kinert property:genre ?m . ?m rdf:type ontology:concept }
[]
concept
Q183504
SYSTEM
indie rock
Q183504
(Q446015,P136,c(Q151885))
action filter_type
action find
entity Q446015
relation P136
type Q151885
[ANSWER] can be considered as category for Nina Kinert
['Q446015', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?m WHERE { resource:Q446015 property:P136 ?m . ?m rdf:type ontology:Q151885 }
indie rock
Indie rock can be considered as category for Nina Kinert
indie rock
action filter_type
action find
entity Nina Kinert
relation genre
type concept
['Nina Kinert', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?m WHERE { resource:Nina_Kinert property:genre ?m . ?m rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q446015
P27
Q15617994
USER
Which administrative territory is Nina Kinert an inhabitant of ?
(Q446015,P27,c(Q15617994))
action filter_type
action find
entity Q446015
relation P27
type Q15617994
['Q446015', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q446015 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Nina Kinert
action filter_type
action find
entity Nina Kinert
relation country of citizenship
type designation for an administrative territorial entity
['Nina Kinert', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Nina_Kinert property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q446015,P27,c(Q15617994))
action filter_type
action find
entity Q446015
relation P27
type Q15617994
[ANSWER] is Nina Kinert an inhabitant of
['Q446015', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q446015 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Sweden
Sweden is Nina Kinert an inhabitant of
Sweden
action filter_type
action find
entity Nina Kinert
relation country of citizenship
type designation for an administrative territorial entity
['Nina Kinert', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Nina_Kinert property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34
P47
Q15617994
USER
Which administrative territories are adjacent to that one ?
(Q34,P47,c(Q15617994))
action filter_type
action find
entity Q34
relation P47
type Q15617994
['Q34', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q34 property:P47 ?w . ?w rdf:type ontology:Q15617994 }
Sweden
action filter_type
action find
entity Sweden
relation shares border with
type designation for an administrative territorial entity
['Sweden', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Sweden property:shares_border_with ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q20
SYSTEM
Finland, Norway
Q33 Q20
(Q34,P47,c(Q15617994))
action filter_type
action find
entity Q34
relation P47
type Q15617994
[ANSWERS] are adjacent to that one
['Q34', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q34 property:P47 ?w . ?w rdf:type ontology:Q15617994 }
Finland Norway
Finland and Norway are adjacent to that one
Finland Norway
action filter_type
action find
entity Sweden
relation shares border with
type designation for an administrative territorial entity
['Sweden', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Sweden property:shares_border_with ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q34 Q1014
P463
Q484652
USER
How many international organizations were Sweden and Liberia a member of ?
(Q34,P463,c(Q484652)) (Q1014,P463,c(Q484652))
action count
action intersection
action filter_type
action find
entity Q34
relation P463
type Q484652
action filter_type
action find
entity Q1014
relation P463
type Q484652
['Q34', 'P463', {'concept': 'Q484652'}] ['Q1014', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { resource:Q34 property:P463 ?a . ?a rdf:type ontology:Q484652 . resource:Q1014 property:P463 ?a . ?a rdf:type ontology:Q484652 }
Sweden Liberia
action count
action intersection
action filter_type
action find
entity Sweden
relation member of
type international organization
action filter_type
action find
entity Liberia
relation member of
type international organization
['Sweden', 'member of', {'concept': 'international organization'}] ['Liberia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { resource:Sweden property:member_of ?a . ?a rdf:type ontology:international_organization . resource:Liberia property:member_of ?a . ?a rdf:type ontology:international_organization }
[]
international organization
SYSTEM
2
Q1065 Q1043527
(Q34,P463,c(Q484652)) (Q1014,P463,c(Q484652))
action count
action intersection
action filter_type
action find
entity Q34
relation P463
type Q484652
action filter_type
action find
entity Q1014
relation P463
type Q484652
[ANSWER]
['Q34', 'P463', {'concept': 'Q484652'}] ['Q1014', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { resource:Q34 property:P463 ?a . ?a rdf:type ontology:Q484652 . resource:Q1014 property:P463 ?a . ?a rdf:type ontology:Q484652 }
United Nations Multilateral Investment Guarantee Agency
2
action count
action intersection
action filter_type
action find
entity Sweden
relation member of
type international organization
action filter_type
action find
entity Liberia
relation member of
type international organization
['Sweden', 'member of', {'concept': 'international organization'}] ['Liberia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { resource:Sweden property:member_of ?a . ?a rdf:type ontology:international_organization . resource:Liberia property:member_of ?a . ?a rdf:type ontology:international_organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q271011
P417
Q502895 Q1445650 Q15617994
USER
How many administrative territories have adopted around the same number of people and holidays as patron saint as Osiglia ?
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action count
action filter_multi_types
action find
entity Q271011
relation P417
type Q502895
type Q1445650
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?v ) WHERE { { ?b property:P417 ?x . ?x rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15617994 } UNION { ?b property:P417 ?x . ?b rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1445650 } } GROUP BY ?b } . FILTER ( ?v = ?f ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Q271011 property:P417 ?u . { { ?u rdf:type ontology:Q502895 } UNION { ?u rdf:type ontology:Q1445650 } } } } }
Osiglia
action count
action approx
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
action count
action filter_multi_types
action find
entity Osiglia
relation patron saint
type common name
type holiday
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?v ) WHERE { { ?b property:patron_saint ?x . ?x rdf:type ontology:common_name . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b property:patron_saint ?x . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:holiday } } GROUP BY ?b } . FILTER ( ?v = ?f ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Osiglia property:patron_saint ?u . { { ?u rdf:type ontology:common_name } UNION { ?u rdf:type ontology:holiday } } } } }
[]
common name holiday 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(Q502895)|c(Q1445650))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action count
action filter_multi_types
action find
entity Q271011
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?v ) WHERE { { ?b property:P417 ?x . ?x rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15617994 } UNION { ?b property:P417 ?x . ?b rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1445650 } } GROUP BY ?b } . FILTER ( ?v = ?f ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Q271011 property:P417 ?u . { { ?u rdf:type ontology:Q502895 } UNION { ?u rdf:type ontology:Q1445650 } } } } }
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 approx
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
action count
action filter_multi_types
action find
entity Osiglia
relation patron saint
type common name
type holiday
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?v ) WHERE { { ?b property:patron_saint ?x . ?x rdf:type ontology:common_name . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b property:patron_saint ?x . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:holiday } } GROUP BY ?b } . FILTER ( ?v = ?f ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Osiglia property:patron_saint ?u . { { ?u rdf:type ontology:common_name } UNION { ?u rdf:type ontology:holiday } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with approximately 5 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 5
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?f ) WHERE { ?x property:P530 ?o . ?x rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?f = 5 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?f ) WHERE { ?x property:diplomatic_relation ?o . ?x rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?f = 5 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 5
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?f ) WHERE { ?x property:P530 ?o . ?x rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?f = 5 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?f ) WHERE { ?x property:diplomatic_relation ?o . ?x rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?f = 5 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1000
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relations with less number of administrative territories than Gabon ?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?a ) WHERE { ?v property:P530 ?x . ?v rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?a < ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Q1000 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } }
Gabon
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?a ) WHERE { ?v property:diplomatic_relation ?x . ?v rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?a < ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Gabon property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q685 Q691
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?a ) WHERE { ?v property:P530 ?x . ?v rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?a < ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Q1000 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } }
Solomon Islands Papua New Guinea
2
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?a ) WHERE { ?v property:diplomatic_relation ?x . ?v rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?a < ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Gabon property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q35
P530
Q1048835 Q15617994
USER
And how about Denmark?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?z ) WHERE { ?x property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?z < ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q35 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } }
Denmark
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?z ) WHERE { ?x property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?z < ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Denmark property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
8
Q1000 Q781 Q778 Q769 Q685 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?z ) WHERE { ?x property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?z < ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q35 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea New Zealand Jamaica
8
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?z ) WHERE { ?x property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?z < ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Denmark property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1000
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with greater number of administrative territories than Gabon ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?w ) WHERE { ?g property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Q1000 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?w > ?h ) }
Gabon
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?w ) WHERE { ?g property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Gabon property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w > ?h ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?w ) WHERE { ?g property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Q1000 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?w > ?h ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?w ) WHERE { ?g property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Gabon property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w > ?h ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q53253 Q1000
P47
Q15617994
USER
Which administrative territories are bordered by Gabon or Dogna ?
OR((Q1000,P47,c(Q15617994)), (Q53253,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q1000
relation P47
action find
entity Q53253
relation P47
type Q15617994
{'OR': [['Q1000', 'P47', {'concept': 'Q15617994'}], ['Q53253', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { ?c property:P47 ?s . VALUES ( ?c ) { ( resource:Q1000 ) ( resource:Q53253 ) } } . ?s rdf:type ontology:Q15617994 }
Dogna Gabon
action filter_type
action union
action find
entity Gabon
relation shares border with
action find
entity Dogna
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Dogna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { ?c property:shares_border_with ?s . VALUES ( ?c ) { ( resource:Gabon ) ( resource:Dogna ) } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q53243 Q983 Q1009 Q971 Q53284 Q53309
SYSTEM
Chiusaforte, Equatorial Guinea, Cameroon, Republic of the Congo, Moggio Udinese, Pontebba
Q53243 Q983 Q1009 Q971 Q53284 Q53309
OR((Q1000,P47,c(Q15617994)), (Q53253,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q1000
relation P47
action find
entity Q53253
relation P47
type Q15617994
The [ANSWERS] are bordered by Gabon or Dogna
{'OR': [['Q1000', 'P47', {'concept': 'Q15617994'}], ['Q53253', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { ?c property:P47 ?s . VALUES ( ?c ) { ( resource:Q1000 ) ( resource:Q53253 ) } } . ?s rdf:type ontology:Q15617994 }
Chiusaforte Equatorial Guinea Cameroon Republic of the Congo Moggio Udinese Pontebba
The Chiusaforte, Equatorial Guinea, Cameroon, Republic of the Congo, Moggio Udinese and Pontebba are bordered by Gabon or Dogna
Chiusaforte Equatorial Guinea Cameroon Republic of the Congo Moggio Udinese Pontebba
action filter_type
action union
action find
entity Gabon
relation shares border with
action find
entity Dogna
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Dogna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { ?c property:shares_border_with ?s . VALUES ( ?c ) { ( resource:Gabon ) ( resource:Dogna ) } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q38 Q1000
P530
Q15617994
USER
Which administrative territories have ambassadorial relations with Gabon and Italy ?
AND((c(Q15617994),P530,Q1000), (c(Q15617994),P530,Q38))
action filter_type
action intersection
action find_reverse
entity Q1000
relation P530
action find_reverse
entity Q38
relation P530
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P530', 'Q1000'], [{'concept': 'Q15617994'}, 'P530', 'Q38']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . ?i property:P530 resource:Q38 . ?i property:P530 resource:Q1000 }
Italy Gabon
action filter_type
action intersection
action find_reverse
entity Gabon
relation diplomatic relation
action find_reverse
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Gabon'], [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Italy']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation resource:Italy . ?i property:diplomatic_relation resource:Gabon }
[]
designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
AND((c(Q15617994),P530,Q1000), (c(Q15617994),P530,Q38))
action filter_type
action intersection
action find_reverse
entity Q1000
relation P530
action find_reverse
entity Q38
relation P530
type Q15617994
And [ANSWER] have ambassadorial relations with Gabon and Italy
{'AND': [[{'concept': 'Q15617994'}, 'P530', 'Q1000'], [{'concept': 'Q15617994'}, 'P530', 'Q38']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . ?i property:P530 resource:Q38 . ?i property:P530 resource:Q1000 }
Georgia
And Georgia have ambassadorial relations with Gabon and Italy
Georgia
action filter_type
action intersection
action find_reverse
entity Gabon
relation diplomatic relation
action find_reverse
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Gabon'], [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Italy']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation resource:Italy . ?i property:diplomatic_relation resource:Gabon }
[]