Simple Question (Direct)
Simple Question
Q2481520
P1412
Q34770
USER
Which language can Raymond Buckland read ?
(Q2481520,P1412,c(Q34770))
action filter_type
action find
entity Q2481520
relation P1412
type Q34770
['Q2481520', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q2481520 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
Raymond Buckland
action filter_type
action find
entity Raymond Buckland
relation languages spoken, written or signed
type language
['Raymond Buckland', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Raymond_Buckland property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q2481520,P1412,c(Q34770))
action filter_type
action find
entity Q2481520
relation P1412
type Q34770
Raymond Buckland can read in [ANSWER]
['Q2481520', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q2481520 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
English
Raymond Buckland can read in English
English
action filter_type
action find
entity Raymond Buckland
relation languages spoken, written or signed
type language
['Raymond Buckland', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Raymond_Buckland property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2481520
P106
Q12737077
USER
What is the profession of that person ?
(Q1860,P106,c(Q12737077))
action filter_type
action find
entity Q2481520
relation P106
type Q12737077
['Q1860', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q2481520 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Raymond Buckland
action filter_type
action find
entity Raymond Buckland
relation occupation
type occupation
['English', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Raymond_Buckland property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q11774202
SYSTEM
essayist
Q11774202
(Q1860,P106,c(Q12737077))
action filter_type
action find
entity Q2481520
relation P106
type Q12737077
The profession of that person is an [ANSWER]
['Q1860', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q2481520 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
essayist
The profession of that person is an essayist
essayist
action filter_type
action find
entity Raymond Buckland
relation occupation
type occupation
['English', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Raymond_Buckland property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q11774202 Q3765497
P106
Q502895
USER
Does Giorgio Giovannetti have that occupation as his/her means of employment ?
(Q3765497,P106,Q11774202)
action is_in
entity Q11774202
action find
entity Q3765497
relation P106
['Q3765497', 'P106', 'Q11774202']
ASK WHERE { resource:Q3765497 property:P106 resource:Q11774202 }
essayist Giorgio Giovannetti
action is_in
entity essayist
action find
entity Giorgio Giovannetti
relation occupation
['Giorgio Giovannetti', 'occupation', 'essayist']
ASK WHERE { resource:Giorgio_Giovannetti property:occupation resource:essayist }
[]
common name
SYSTEM
YES
(Q3765497,P106,Q11774202)
action is_in
entity Q11774202
action find
entity Q3765497
relation P106
[ANSWER]
['Q3765497', 'P106', 'Q11774202']
ASK WHERE { resource:Q3765497 property:P106 resource:Q11774202 }
Yes
action is_in
entity essayist
action find
entity Giorgio Giovannetti
relation occupation
['Giorgio Giovannetti', 'occupation', 'essayist']
ASK WHERE { resource:Giorgio_Giovannetti property:occupation resource:essayist }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2855738 Q3765497
P27 P20
Q15617994
USER
Which administrative territories are Giorgio Giovannetti a civilian of or did the demise of Yosef Baratz occur ?
OR((Q3765497,P27,c(Q15617994)), (Q2855738,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q3765497
relation P27
action find
entity Q2855738
relation P20
type Q15617994
{'OR': [['Q3765497', 'P27', {'concept': 'Q15617994'}], ['Q2855738', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q3765497 property:P27 ?p } UNION { resource:Q2855738 property:P20 ?p } } . ?p rdf:type ontology:Q15617994 }
Yosef Baratz Giorgio Giovannetti
action filter_type
action union
action find
entity Giorgio Giovannetti
relation country of citizenship
action find
entity Yosef Baratz
relation place of death
type designation for an administrative territorial entity
{'OR': [['Giorgio Giovannetti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Yosef Baratz', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Giorgio_Giovannetti property:country_of_citizenship ?p } UNION { resource:Yosef_Baratz property:place_of_death ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q801
SYSTEM
Italy, Israel
Q38 Q801
OR((Q3765497,P27,c(Q15617994)), (Q2855738,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q3765497
relation P27
action find
entity Q2855738
relation P20
type Q15617994
[ANSWERS] are Giorgio Giovannetti a civilian of or did the demise of Yosef Baratz occur
{'OR': [['Q3765497', 'P27', {'concept': 'Q15617994'}], ['Q2855738', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q3765497 property:P27 ?p } UNION { resource:Q2855738 property:P20 ?p } } . ?p rdf:type ontology:Q15617994 }
Italy Israel
Italy and Israel are Giorgio Giovannetti a civilian of or did the demise of Yosef Baratz occur
Italy Israel
action filter_type
action union
action find
entity Giorgio Giovannetti
relation country of citizenship
action find
entity Yosef Baratz
relation place of death
type designation for an administrative territorial entity
{'OR': [['Giorgio Giovannetti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Yosef Baratz', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Giorgio_Giovannetti property:country_of_citizenship ?p } UNION { resource:Yosef_Baratz property:place_of_death ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q43229 Q838948
USER
How many administrative territories are atmost 1 organizations or works of art named after ?
(c(Q43229)|c(Q838948),P138,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q43229
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q838948
value 1
[[{'concept': 'Q43229'}, {'concept': 'Q838948'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) ?t WHERE { { ?t rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q43229 . ?v property:P138 ?t } UNION { ?t rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q838948 . ?v property:P138 ?t } } GROUP BY ?t } . FILTER ( ?x <= 1 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type organization
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type work of art
value 1
[[{'concept': 'organization'}, {'concept': 'work of art'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) ?t WHERE { { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:organization . ?v property:named_after ?t } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:work_of_art . ?v property:named_after ?t } } GROUP BY ?t } . FILTER ( ?x <= 1 ) }
[]
designation for an administrative territorial entity organization work of art
SYSTEM
383
Q804 Q572949 Q801 Q800 Q103408 Q419 Q81077 Q414 Q1799797 Q55 Q2871 Q490521 Q786 Q40806 Q157598 Q224139 Q3898 Q159 Q155 Q12689 Q52240 Q3476 Q17686 Q46490 Q3372 Q243474 Q7281814 Q549449 Q13376 Q13373 Q42803 Q82670 Q636991 Q739 Q100125 Q730 Q733 Q6681 Q736 Q12798 Q586072 Q1280 Q1282 Q17827 Q1273 Q913434 Q1279 Q186538 Q640473 Q189 Q184 Q1028 Q1458 Q570120 Q18421666 Q167215 Q42777 Q159856 Q6274 Q279028 Q2396564 Q53127 Q298 Q115 Q114 Q41158 Q626792 Q549749 Q40871 Q43055 Q42509 Q629830 Q1427674 Q53334 Q3922 Q42839 Q7603016 Q42835 Q505191 Q279373 Q3697039 Q58457 Q3326 Q214929 Q627935 Q2719360 Q948 Q42942 Q1243 Q519157 Q3266 Q3105 Q269476 Q33788 Q6122 Q42931 Q700831 Q80599 Q705 Q539059 Q668 Q185619 Q5084 Q6231 Q660185 Q6237 Q5642 Q99950 Q45 Q792 Q790 Q796 Q21200959 Q794 Q889 Q884 Q12788 Q26727498 Q632209 Q241 Q11340 Q11343 Q585248 Q155622 Q3798 Q12515 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q39 Q38 Q1023890 Q101226 Q42906 Q40516 Q1987554 Q159626 Q236 Q232 Q129003 Q81729 Q1101 Q1206596 Q391167 Q3038 Q52981 Q3139 Q514208 Q3468865 Q36784 Q622505 Q555328 Q1037 Q1033 Q1030 Q53873 Q18040 Q3926245 Q697 Q186115 Q39985 Q750 Q50156 Q42749 Q570035 Q540441 Q13137 Q1630 Q2009 Q39912 Q498534 Q40866 Q40862 Q191 Q1435624 Q79 Q769621 Q77 Q46130 Q512943 Q305352 Q192917 Q94979 Q39395 Q176 Q487929 Q674852 Q478142 Q1951 Q1952 Q536647 Q116706 Q1256 Q40641 Q634084 Q40131 Q102634 Q100368 Q3278 Q19207 Q522459 Q144711 Q712 Q717 Q42993 Q488513 Q243311 Q503160 Q2993085 Q42996 Q954 Q690417 Q826 Q822 Q1142326 Q244095 Q223459 Q42419 Q502434 Q13645 Q155019 Q6986 Q258974 Q1527970 Q107426 Q14943702 Q681329 Q12661 Q20 Q5274 Q28 Q29 Q111460 Q50932 Q20489 Q390125 Q205050 Q581067 Q894049 Q40611 Q161825 Q359324 Q34607 Q223 Q222 Q221 Q229 Q228 Q580447 Q10957559 Q23178 Q968 Q965 Q2152015 Q333389 Q627223 Q2938 Q1210 Q1216 Q503757 Q917 Q916 Q1005 Q573523 Q40497 Q2742 Q1438 Q81740 Q837 Q17669 Q810 Q811 Q813 Q255361 Q819 Q654138 Q81261 Q493437 Q863 Q574429 Q869 Q111543 Q102736 Q269174 Q278221 Q12434 Q20077 Q31872 Q95067 Q95066 Q142 Q53246 Q1948 Q262 Q148 Q157266 Q3319482 Q264620 Q39971 Q73532 Q42626 Q42628 Q499045 Q490167 Q20103 Q10312 Q2009898 Q774 Q42245 Q4431 Q770 Q131633 Q2596432 Q928 Q19306 Q759201 Q424 Q675616 Q854 Q9574 Q2790 Q566435 Q496885 Q42984 Q552822 Q6998 Q155144 Q645814 Q2139159 Q1041 Q216977 Q489929 Q629664 Q1904 Q393594 Q41003 Q347 Q43046 Q81138 Q17 Q15059063 Q42668 Q3940173 Q4066675 Q138823 Q697787 Q47578 Q11337 Q211 Q159605 Q215 Q1837 Q501626 Q554187 Q23247 Q974 Q971 Q496978 Q23238 Q11119 Q566795 Q631654 Q42192 Q645340 Q9187 Q42926 Q775 Q14870 Q100041 Q1019 Q772 Q1014 Q1016 Q16104 Q243337 Q42441 Q182248 Q20458 Q20517
(c(Q43229)|c(Q838948),P138,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q43229
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q838948
value 1
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q838948'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) ?t WHERE { { ?t rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q43229 . ?v property:P138 ?t } UNION { ?t rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q838948 . ?v property:P138 ?t } } GROUP BY ?t } . FILTER ( ?x <= 1 ) }
Panama Solnhofen Israel Costa Rica Adro Peru Montecorvino Rovella Argentina Wolfskehlen Netherlands Hagen Strausberg Dominican Republic Pedavena Kulmbach Frasso Sabino Castrop-Rauxel Russia Brazil Pas-de-Calais Pontremoli L'Aquila Tortona Arcole Eure Rees Radyr Prince of Orange Pistoia Lucca Olginate Fiesole Jacobsdorf Colombia Calcio, Lombardy Suriname Paraguay Crotone Ecuador Vendée Chorin Umbria Lazio Moncalvo Tuscany Les Halles Marche Arzachena Hohenstein Iceland Belarus Morocco Calabria Hollenstedt Loguivy-de-la-Mer Cernusco Lombardone Abbiategrasso Duchy of Brabant Sondrio Simmering Mallee Farra d'Isonzo Chile Ethiopia Kenya Cortina d'Ampezzo Fehrbellin Heinsen Livigno Gorgonzola Bussero Meerfeld Wernborn Remanzacco Detmold Brivio Mitino Calco Leuna Rovereto Crescenzago Caiazzo Corrèze Pitigliano Berkenbrück Duchy of Luxembourg Tunisia Lierna Veneto Templin Charente Vosges Perinaldo New Caledonia Asti Merate Sögel Auletta Zeeland Kelbra India Cernusco sul Naviglio hamlet Cremona Huangpu District Lecco Brilon Predappio Portugal El Salvador Haiti Iraq Keroland Iran Afghanistan South Korea Val-de-Marne Mirafiori Basedow Cuba Sprockhövel Wetter (Ruhr) Glienicke/Nordbahn Bernkastel-Kues Flensburg Gard Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Switzerland Italy Huangpu District Mapello Cologno Monzese Bormio Nieder-Roden Württemberg Montenegro Kazakhstan French Southern and Antarctic Lands Radeberg North Brabant Deux-Nèthes Ozieri Helgoland Faenza Alpes-Maritimes Jettenbach Tõravere region of France Rauen Urmitz Rwanda Nigeria Namibia Diamante Candelo QT8 Nauru Montmartre Brugherio Bolivia Secinaro Paderno d'Adda Hillesheim Tautenburg Teramo Altona Yukon Usmate Velate Diepholz Giussano Saronno Estonia Yasnaya Polyana Egypt Sanshui District Uruguay Rhône Sailauf Aban Erice Pianoro Sovico Quebec Milazzo Dätgen Schierstein Alberta Nova Scotia Dassow Ceccano Liguria Macherio Trebur Chiavenna Monsummano Terme Cisano Bergamasco Charente-Maritime Canosio Bad Harzburg Ettringen Fiji Venezuela Gessate Anklam Sacrofano Wolfratshausen Levashovo, Saint Petersburg Pero Zimbabwe Währing Maldives Lebanon Seine Bellagio Borbona Vimodrone Sangerhausen Tempio Pausania Duchy of Lorraine Gotha Bitburg Ober-Roden Anjou Sprendlingen Dümmer Nord Norway Balve Hungary Spain Pontevico Helpt Savigliano Linz am Rhein Geilenkirchen Britz Borodino (village), Mozhaysky District, Moscow Oblast Casteggio Daun Admont Este Greenland Albania Republic of Macedonia Cyprus Andorra Duchy of Styria Moldavia Bisceglie Warburg Burkina Faso Riedelbach Palau Briesen Leverkusen Lombardy Piedmont Oberammergau Bhutan Angola Gambia Flechtingen Carnate Münster Campania Lauta Nepal Serravalle Scrivia Jordan Nicaragua Kyrgyzstan Werfen Laos Rhede, Lower Saxony Rudersberg Arneburg Tajikistan Seeheim-Jugenheim Thailand Provaglio d'Iseo San Marcello Pistoiese Worpswede Berchtesgaden Bad Honnef Werdau Moosburg an der Isar Ambivere Alzano Lombardo France Codroipo Manitoba Algeria People's Republic of China Sternberg Molegbe Garching bei München Gela Ruhpolding Vercurago Robbiate Sinagra, Sicily Pielenhofen Assisi Tavagnasco Oberhöchstadt Guatemala Robecco d'Oglio Bad Köstritz Friesland Hallstatt Euvelgunne Philippines Altamura Auerbach Cambodia Langenzersdorf Sri Lanka Pino Torinese Udine Erpel Isnello Turbigo Mecklenburg-Güstrow Freising Alsace-Lorraine Kröpelin Reichenbach Senegal Coreglia Antelminelli Avola Arbesbach Ontario Agia Paraskevi Palestro Liechtenstein Olgiate Molgora Nocera Inferiore Japan Kellaways Pudost Rogoredo Annino Farnese, Lazio Duchy of Limburg Vittorio Veneto Herdecke Latvia Tivoli Slovenia Wohldorf-Ohlstedt Wildeshausen Lunden Belgirate Democratic Republic of the Congo Republic of the Congo Roccapalumba Baveno Warstein Schalkenmehren Selent San Donato Milanese Brenk Carmagnola Calolziocorte Gelderland Siegburg Carpi Madagascar Drenthe Liberia Libya Ahrensburg Issum Cassina de' Pecchi Nordwalde Gubbio Treiso
383
action count
action atmost
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type organization
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type work of art
value 1
[[{'concept': 'organization'}, {'concept': 'work of art'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) ?t WHERE { { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:organization . ?v property:named_after ?t } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:work_of_art . ?v property:named_after ?t } } GROUP BY ?t } . FILTER ( ?x <= 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q35
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with less number of administrative territories than Denmark ?
(c(Q15617994),P530,c(Q1048835))
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 ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q35 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?k < ?v ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?k ) WHERE { ?g property:P530 ?r . ?g rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?g } }
Denmark
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 ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Denmark property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?k < ?v ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?k ) WHERE { ?g property:diplomatic_relation ?r . ?g rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } }
[]
political territorial entity designation for an administrative territorial entity
Q664 Q1000 Q769
SYSTEM
New Zealand, Gabon, Grenada
Q1000 Q781 Q778 Q769 Q685 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
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
[ANSWERS] have diplomatic relations with less number of administrative territories than Denmark
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q35 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?k < ?v ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?k ) WHERE { ?g property:P530 ?r . ?g rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?g } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea New Zealand Jamaica
New Zealand, Gabon and Grenada have diplomatic relations with less number of administrative territories than Denmark
New Zealand Gabon Grenada
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 ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Denmark property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?k < ?v ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?k ) WHERE { ?g property:diplomatic_relation ?r . ?g rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q781
P530
Q1048835 Q15617994
USER
And what about Antigua and Barbuda?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?o ) WHERE { ?i rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 . ?i property:P530 ?u } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ontology:Q1048835 . resource:Q781 property:P530 ?a } } . FILTER ( ?o < ?c ) }
Antigua and Barbuda
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 Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?o ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?u } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Antigua_and_Barbuda property:diplomatic_relation ?a } } . FILTER ( ?o < ?c ) }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?o ) WHERE { ?i rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 . ?i property:P530 ?u } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ontology:Q1048835 . resource:Q781 property:P530 ?a } } . FILTER ( ?o < ?c ) }
Solomon Islands Papua New Guinea
Solomon Islands Papua New Guinea
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 Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?o ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?u } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Antigua_and_Barbuda property:diplomatic_relation ?a } } . FILTER ( ?o < ?c ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P85
Q7725634 Q484692 Q1048835
USER
How many political territories have atmost 1 literary works and hymns as their national anthem ?
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action count
action atmost
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
value 1
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { FILTER ( ?c <= 1 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?o WHERE { { ?o property:P85 ?h . ?o rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q7725634 } UNION { ?o property:P85 ?h . ?o rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q484692 } } GROUP BY ?o } }
action count
action atmost
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
value 1
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { FILTER ( ?c <= 1 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?o WHERE { { ?o property:anthem ?h . ?o rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:literary_work } UNION { ?o property:anthem ?h . ?o rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:hymn } } GROUP BY ?o } }
[]
literary work hymn political territorial entity
SYSTEM
38
Q1000 Q183 Q785 Q601252 Q193619 Q685 Q202023 Q763 Q664 Q9676 Q1054923 Q13353 Q5705 Q16 Q170604 Q5785 Q38610 Q3405693 Q18221 Q43448 Q778 Q1785790 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action count
action atmost
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { FILTER ( ?c <= 1 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?o WHERE { { ?o property:P85 ?h . ?o rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q7725634 } UNION { ?o property:P85 ?h . ?o rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q484692 } } GROUP BY ?o } }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Solomon Islands Herm Saint Kitts and Nevis New Zealand Isle of Man British Hong Kong Montserrat Catalonia Canada New France Cayman Islands Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Selbach, Rio Grande do Sul Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
38
action count
action atmost
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
value 1
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { FILTER ( ?c <= 1 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?o WHERE { { ?o property:anthem ?h . ?o rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:literary_work } UNION { ?o property:anthem ?h . ?o rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:hymn } } GROUP BY ?o } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q801
P47
Q15617994
USER
Who share the border with Israel ?
(Q801,P47,c(Q15617994))
action filter_type
action find
entity Q801
relation P47
type Q15617994
['Q801', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q801 property:P47 ?k . ?k rdf:type ontology:Q15617994 }
Israel
action filter_type
action find
entity Israel
relation shares border with
type designation for an administrative territorial entity
['Israel', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Israel property:shares_border_with ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q858 Q79 Q229
SYSTEM
Syria, Egypt, Cyprus
Q858 Q810 Q229 Q822 Q79 Q36678
(Q801,P47,c(Q15617994))
action filter_type
action find
entity Q801
relation P47
type Q15617994
[ANSWERS] share the border with Israel
['Q801', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q801 property:P47 ?k . ?k rdf:type ontology:Q15617994 }
Syria Jordan Cyprus Lebanon Egypt West Bank
Syria, Egypt and Cyprus share the border with Israel
Syria Egypt Cyprus
action filter_type
action find
entity Israel
relation shares border with
type designation for an administrative territorial entity
['Israel', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Israel property:shares_border_with ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q801
Q7275
USER
And which state?
(Q801,P47,c(Q7275))
action filter_type
action find
entity Q801
relation P47
type Q7275
['Q801', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { resource:Q801 property:P47 ?q . ?q rdf:type ontology:Q7275 }
Israel
action filter_type
action find
entity Israel
relation shares border with
type state
['Israel', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { resource:Israel property:shares_border_with ?q . ?q rdf:type ontology:state }
[]
state
Q39760
SYSTEM
Gaza Strip
Q39760
(Q801,P47,c(Q7275))
action filter_type
action find
entity Q801
relation P47
type Q7275
[ANSWER]
['Q801', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { resource:Q801 property:P47 ?q . ?q rdf:type ontology:Q7275 }
Gaza Strip
Gaza Strip
action filter_type
action find
entity Israel
relation shares border with
type state
['Israel', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { resource:Israel property:shares_border_with ?q . ?q rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5187561 Q2855738
P937
Q56061
USER
Which administrative territories are the locations where Yosef Baratz or Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland worked ?
OR((Q2855738,P937,c(Q56061)), (Q5187561,P937,c(Q56061)))
action filter_type
action union
action find
entity Q2855738
relation P937
action find
entity Q5187561
relation P937
type Q56061
{'OR': [['Q2855738', 'P937', {'concept': 'Q56061'}], ['Q5187561', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q2855738 property:P937 ?f } UNION { resource:Q5187561 property:P937 ?f } } . ?f rdf:type ontology:Q56061 }
Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland Yosef Baratz
action filter_type
action union
action find
entity Yosef Baratz
relation work location
action find
entity Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland
relation work location
type administrative territorial entity
{'OR': [['Yosef Baratz', 'work location', {'concept': 'administrative territorial entity'}], ['Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Yosef_Baratz property:work_location ?f } UNION { resource:Cromartie_Sutherland-Leveson-Gower,_4th_Duke_of_Sutherland property:work_location ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1218 Q84
SYSTEM
Jerusalem, London
Q1218 Q84
OR((Q2855738,P937,c(Q56061)), (Q5187561,P937,c(Q56061)))
action filter_type
action union
action find
entity Q2855738
relation P937
action find
entity Q5187561
relation P937
type Q56061
[ANSWERS] are the locations where Yosef Baratz or Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland worked
{'OR': [['Q2855738', 'P937', {'concept': 'Q56061'}], ['Q5187561', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q2855738 property:P937 ?f } UNION { resource:Q5187561 property:P937 ?f } } . ?f rdf:type ontology:Q56061 }
Jerusalem London
Jerusalem and London are the locations where Yosef Baratz or Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland worked
Jerusalem London
action filter_type
action union
action find
entity Yosef Baratz
relation work location
action find
entity Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland
relation work location
type administrative territorial entity
{'OR': [['Yosef Baratz', 'work location', {'concept': 'administrative territorial entity'}], ['Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Yosef_Baratz property:work_location ?f } UNION { resource:Cromartie_Sutherland-Leveson-Gower,_4th_Duke_of_Sutherland property:work_location ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5187561
P22
Q502895
USER
Which male person was the parent of Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland ?
(Q5187561,P22,c(Q502895))
action filter_type
action find
entity Q5187561
relation P22
type Q502895
['Q5187561', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q5187561 property:P22 ?x . ?x rdf:type ontology:Q502895 }
Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland
action filter_type
action find
entity Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland
relation father
type common name
['Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Cromartie_Sutherland-Leveson-Gower,_4th_Duke_of_Sutherland property:father ?x . ?x rdf:type ontology:common_name }
[]
common name
Q333933
SYSTEM
George Sutherland-Leveson-Gower, 3rd Duke of Sutherland
Q333933
(Q5187561,P22,c(Q502895))
action filter_type
action find
entity Q5187561
relation P22
type Q502895
And [ANSWER] was the parent of Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland
['Q5187561', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q5187561 property:P22 ?x . ?x rdf:type ontology:Q502895 }
George Sutherland-Leveson-Gower, 3rd Duke of Sutherland
And George Sutherland-Leveson-Gower, 3rd Duke of Sutherland was the parent of Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland
George Sutherland-Leveson-Gower, 3rd Duke of Sutherland
action filter_type
action find
entity Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland
relation father
type common name
['Cromartie Sutherland-Leveson-Gower, 4th Duke of Sutherland', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Cromartie_Sutherland-Leveson-Gower,_4th_Duke_of_Sutherland property:father ?x . ?x rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atleast 1847 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1847
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?l >= 1847 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1847
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?l >= 1847 ) }
[]
musical instrument common name
SYSTEM
4
Q5994 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1847
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?l >= 1847 ) }
piano violin organ drum kit
4
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1847
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?l >= 1847 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q801
P840
Q838948
USER
Which works of art have their narrative set in Israel ?
(c(Q838948),P840,Q801)
action filter_type
action find_reverse
entity Q801
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q801']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q838948 . ?i property:P840 resource:Q801 }
Israel
action filter_type
action find_reverse
entity Israel
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Israel']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:work_of_art . ?i property:narrative_location resource:Israel }
[]
work of art
Q1247320 Q926309
SYSTEM
Free Zone, Brüno
Q1247320 Q926309
(c(Q838948),P840,Q801)
action filter_type
action find_reverse
entity Q801
relation P840
type Q838948
[ANSWERS] have their narrative set in Israel
[{'concept': 'Q838948'}, 'P840', 'Q801']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q838948 . ?i property:P840 resource:Q801 }
Free Zone Brüno
Free Zone and Brüno have their narrative set in Israel
Free Zone Brüno
action filter_type
action find_reverse
entity Israel
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Israel']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:work_of_art . ?i property:narrative_location resource:Israel }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1247320 Q926309
P462
Q1075
USER
What are the colors that Free Zone and Brüno are associated with ?
(Q1247320,P462,c(Q1075)) (Q926309,P462,c(Q1075))
action union
action filter_type
action find
entity Q1247320
relation P462
type Q1075
action filter_type
action find
entity Q926309
relation P462
type Q1075
['Q1247320', 'P462', {'concept': 'Q1075'}] ['Q926309', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?l ) { ( resource:Q1247320 ) ( resource:Q926309 ) } . ?l property:P462 ?i }
Free Zone Brüno
action union
action filter_type
action find
entity Free Zone
relation color
type color
action filter_type
action find
entity Brüno
relation color
type color
['Free Zone', 'color', {'concept': 'color'}] ['Brüno', 'color', {'concept': 'color'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?l ) { ( resource:Free_Zone ) ( resource:Brüno ) } . ?l property:color ?i }
[]
color
Q22006653 Q22006653
SYSTEM
color
Q22006653 Q22006653
(Q1247320,P462,c(Q1075)) (Q926309,P462,c(Q1075))
action union
action filter_type
action find
entity Q1247320
relation P462
type Q1075
action filter_type
action find
entity Q926309
relation P462
type Q1075
The [ANSWER]s that Free Zone and Brüno are associated with are the [ANSWER] and [ANSWER]
['Q1247320', 'P462', {'concept': 'Q1075'}] ['Q926309', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?l ) { ( resource:Q1247320 ) ( resource:Q926309 ) } . ?l property:P462 ?i }
color color
The colors that Free Zone and Brüno are associated with are the color and color
color color
action union
action filter_type
action find
entity Free Zone
relation color
type color
action filter_type
action find
entity Brüno
relation color
type color
['Free Zone', 'color', {'concept': 'color'}] ['Brüno', 'color', {'concept': 'color'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?l ) { ( resource:Free_Zone ) ( resource:Brüno ) } . ?l property:color ?i }
[]