Simple Question (Direct)
Simple Question
Q1426318
P344
Q502895
USER
Which person is the cinematographer of Time Bandits ?
(Q1426318,P344,c(Q502895))
action filter_type
action find
entity Q1426318
relation P344
type Q502895
['Q1426318', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q1426318 property:P344 ?v . ?v rdf:type ontology:Q502895 }
Time Bandits
action filter_type
action find
entity Time Bandits
relation director of photography
type common name
['Time Bandits', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Time_Bandits property:director_of_photography ?v . ?v rdf:type ontology:common_name }
[]
common name
Q579550
SYSTEM
Peter Biziou
Q579550
(Q1426318,P344,c(Q502895))
action filter_type
action find
entity Q1426318
relation P344
type Q502895
[ANSWER] is the cinematographer of Time Bandits
['Q1426318', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q1426318 property:P344 ?v . ?v rdf:type ontology:Q502895 }
Peter Biziou
Peter Biziou is the cinematographer of Time Bandits
Peter Biziou
action filter_type
action find
entity Time Bandits
relation director of photography
type common name
['Time Bandits', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Time_Bandits property:director_of_photography ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1426318
P495
Q15617994
USER
Which administrative territory is the country of origin of that work of art ?
(Q579550,P495,c(Q15617994))
action filter_type
action find
entity Q1426318
relation P495
type Q15617994
['Q579550', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q1426318 property:P495 ?r . ?r rdf:type ontology:Q15617994 }
Time Bandits
action filter_type
action find
entity Time Bandits
relation country of origin
type designation for an administrative territorial entity
['Peter Biziou', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Time_Bandits property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q579550,P495,c(Q15617994))
action filter_type
action find
entity Q1426318
relation P495
type Q15617994
[ANSWER] is the country of origin of that work of art
['Q579550', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q1426318 property:P495 ?r . ?r rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of origin of that work of art
United Kingdom
action filter_type
action find
entity Time Bandits
relation country of origin
type designation for an administrative territorial entity
['Peter Biziou', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Time_Bandits property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1426318
P840
Q8425
USER
What location is that work of art set in ?
(Q145,P840,c(Q8425))
action filter_type
action find
entity Q1426318
relation P840
type Q8425
['Q145', 'P840', {'concept': 'Q8425'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q8425 . resource:Q1426318 property:P840 ?d }
Time Bandits
action filter_type
action find
entity Time Bandits
relation narrative location
type society
['United Kingdom', 'narrative location', {'concept': 'society'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:society . resource:Time_Bandits property:narrative_location ?d }
[]
society
Q11772
SYSTEM
Ancient Greece
Q11772
(Q145,P840,c(Q8425))
action filter_type
action find
entity Q1426318
relation P840
type Q8425
That work of art is set in [ANSWER]
['Q145', 'P840', {'concept': 'Q8425'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q8425 . resource:Q1426318 property:P840 ?d }
Ancient Greece
That work of art is set in Ancient Greece
Ancient Greece
action filter_type
action find
entity Time Bandits
relation narrative location
type society
['United Kingdom', 'narrative location', {'concept': 'society'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:society . resource:Time_Bandits property:narrative_location ?d }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q970
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with lesser number of administrative territories than Comoros ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q970
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?l ) WHERE { ?x property:P530 ?o . ?x rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { ?j property:P530 resource:Q970 . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?l < ?t ) }
Comoros
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Comoros
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?l ) WHERE { ?x property:diplomatic_relation ?o . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { ?j property:diplomatic_relation resource:Comoros . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l < ?t ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
25
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q970
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?l ) WHERE { ?x property:P530 ?o . ?x rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { ?j property:P530 resource:Q970 . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?l < ?t ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
25
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Comoros
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?l ) WHERE { ?x property:diplomatic_relation ?o . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { ?j property:diplomatic_relation resource:Comoros . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l < ?t ) }
[]
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 64 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 64
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?z <= 64 ) }
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 64
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?z <= 64 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
165
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 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 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 64
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?z <= 64 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America 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 Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan 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 Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
165
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 64
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?z <= 64 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q145 Q845084
P264
Q2031291
USER
How many releases have United Kingdom or REO Speedwagon as their record brand ?
(c(Q2031291),P264,Q145) (c(Q2031291),P264,Q845084)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P264
type Q2031291
action filter_type
action find_reverse
entity Q845084
relation P264
type Q2031291
[{'concept': 'Q2031291'}, 'P264', 'Q145'] [{'concept': 'Q2031291'}, 'P264', 'Q845084']
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { ?w property:P264 resource:Q845084 . ?w rdf:type ontology:Q2031291 } UNION { ?w rdf:type ontology:Q2031291 . ?w property:P264 resource:Q145 } }
United Kingdom REO Speedwagon
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation record label
type release
action filter_type
action find_reverse
entity REO Speedwagon
relation record label
type release
[{'concept': 'release'}, 'record label', 'United Kingdom'] [{'concept': 'release'}, 'record label', 'REO Speedwagon']
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { ?w property:record_label resource:REO_Speedwagon . ?w rdf:type ontology:release } UNION { ?w rdf:type ontology:release . ?w property:record_label resource:United_Kingdom } }
[]
release
SYSTEM
4
Q5449880 Q2198408 Q7655570 Q6723324
(c(Q2031291),P264,Q145) (c(Q2031291),P264,Q845084)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P264
type Q2031291
action filter_type
action find_reverse
entity Q845084
relation P264
type Q2031291
[ANSWER]
[{'concept': 'Q2031291'}, 'P264', 'Q145'] [{'concept': 'Q2031291'}, 'P264', 'Q845084']
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { ?w property:P264 resource:Q845084 . ?w rdf:type ontology:Q2031291 } UNION { ?w rdf:type ontology:Q2031291 . ?w property:P264 resource:Q145 } }
Find Your Own Way Home Deep Cuts Sweet Warrior Mach Schau
4
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation record label
type release
action filter_type
action find_reverse
entity REO Speedwagon
relation record label
type release
[{'concept': 'release'}, 'record label', 'United Kingdom'] [{'concept': 'release'}, 'record label', 'REO Speedwagon']
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { ?w property:record_label resource:REO_Speedwagon . ?w rdf:type ontology:release } UNION { ?w rdf:type ontology:release . ?w property:record_label resource:United_Kingdom } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1452
P36
Q56061 Q515 Q15617994
USER
Which administrative territories are less number of administrative territories or cities the capital of than Basilicata ?
(c(Q15617994),P36,c(Q56061)|c(Q515))
action less
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q1452
relation P36
type Q56061
type Q515
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { { ?n property:P36 ?x . ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q56061 } UNION { ?n property:P36 ?x . ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q515 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { VALUES ( ?c ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?g rdf:type ?c } . resource:Q1452 property:P36 ?g } } . FILTER ( ?k < ?t ) }
Basilicata
action less
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Basilicata
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { { ?n property:capital ?x . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:administrative_territorial_entity } UNION { ?n property:capital ?x . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:city } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { VALUES ( ?c ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?g rdf:type ?c } . resource:Basilicata property:capital ?g } } . FILTER ( ?k < ?t ) }
[]
administrative territorial entity city designation for an administrative territorial entity
Q224 Q739 Q965
SYSTEM
Croatia, Colombia, Burkina Faso
Q12631 Q2991354 Q3368 Q1111401 Q504637 Q2998020 Q3044731 Q2466631 Q12689 Q2527360 Q699731 Q3377 Q3372 Q1742192 Q3093 Q4464924 Q2344966 Q3259 Q12594 Q739 Q733 Q16628524 Q12798 Q12792 Q1284 Q1443 Q541811 Q1458 Q14551680 Q12700 Q12703 Q12709 Q12569 Q12574 Q12642 Q21296012 Q3216 Q3194 Q541589 Q12804 Q12808 Q1961264 Q3326 Q3286 Q12589 Q3266 Q3105 Q731547 Q33788 Q709 Q12740 Q12745 Q12779 Q2093388 Q12607 Q290739 Q598193 Q12576 Q1452646 Q2281221 Q1508919 Q12694 Q12515 Q12517 Q3364 Q3148 Q5613245 Q280312 Q12675 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q3118738 Q686312 Q697 Q12730 Q12736 Q2039306 Q662056 Q12657 Q12652 Q12556 Q694594 Q874 Q12816 Q4854468 Q2528268 Q3353 Q3357 Q492437 Q389004 Q492430 Q3278 Q3184 Q9073753 Q2900529 Q12772 Q1090678 Q19786899 Q1999970 Q155019 Q2348751 Q107426 Q511365 Q1270568 Q34762 Q793437 Q1270623 Q580447 Q10957559 Q965 Q962 Q2344833 Q3125 Q3120 Q3110307 Q12722 Q2039314 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q474421 Q3349 Q3083 Q3249 Q3164 Q12761 Q12765 Q224 Q691265 Q313175 Q3334 Q12572 Q2996404 Q12578 Q12679 Q3846423 Q176 Q161258 Q4496152 Q3514973 Q3113 Q12789 Q1234961 Q1222 Q5192588 Q672 Q12758 Q12753 Q12751 Q12564
(c(Q15617994),P36,c(Q56061)|c(Q515))
action less
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q1452
relation P36
type Q56061
type Q515
[ANSWERS] are less number of administrative territories or cities the capital of than Basilicata
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { { ?n property:P36 ?x . ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q56061 } UNION { ?n property:P36 ?x . ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q515 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { VALUES ( ?c ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?g rdf:type ?c } . resource:Q1452 property:P36 ?g } } . FILTER ( ?k < ?t ) }
Meuse Aquiles Serdán Municipality Essonne Kispest District Alta Verapaz Department Corse Guyane Chiautla de Tapia Municipality Pas-de-Calais Stura Wied Eure-et-Loir Eure King's Lynn and West Norfolk Aisne Tugulymsky District Netrokona District Cantal Marne Colombia Paraguay San Salvador el Verde municipality Vendée Vaucluse Abruzzo Molise Ems-Oriental Calabria Principality of Lippe Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Loiret Morbihan Amatitlán Aveyron Aube Ems-Supérieur Vienne Haute-Vienne Tecámac Municipality Corrèze Cher Manche Charente Vosges Lippe New Caledonia Marshall Islands Sarthe Savoie Tarn-et-Garonne Sunamganj District Haute-Marne Sesia Apennins Lot Montenotte Principality of Orange Marengo Puy-de-Dôme Gard Gers Drôme Ardèche Guadalupe Municipality Principality of Lüneburg Oise Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Guanentá Province Duchy of Amalfi Nauru Haute-Saône Saône-et-Loire Jamalpur District Cushamen Department Nièvre Moselle Indre-et-Loire Bremen-Verden Turkmenistan Yonne Bandava Mont-Blanc Creuse Dordogne Bouches-du-Weser Wallachia Bouches-de-l'Elbe Charente-Maritime Ariège San Vicente Tancuayalab municipality Bezirk Lothringen Tarn Sègre Magyaróvár District Upper Alsace Duchy of Lorraine Kurigram District Anjou Arvika Municipality Ems Principality of Bayreuth Bergantiños Meurthe Duchy of Styria Moldavia Burkina Faso Benin Kishoreganj District Hautes-Alpes Jura Golo Haut-Rhin Sherpur District Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Principality of Fürstenberg Côtes-d'Armor Ain Calvados Ardennes Seine-Saint-Denis Deux-Sèvres Croatia Mont-Terrible Saxe-Lauenburg Haute-Corse Haute-Loire Alushta municipality Lot-et-Garonne Orne Viesca Municipality Quebec Clipperton Island Khartsyzk Municipality Tanaro Allier Var Doire Aosta Valley Cuenca District, Huancavelica Tuvalu Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
Croatia, Colombia and Burkina Faso are less number of administrative territories or cities the capital of than Basilicata
Croatia Colombia Burkina Faso
action less
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Basilicata
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { { ?n property:capital ?x . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:administrative_territorial_entity } UNION { ?n property:capital ?x . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:city } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { VALUES ( ?c ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?g rdf:type ?c } . resource:Basilicata property:capital ?g } } . FILTER ( ?k < ?t ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q224 Q739 Q965
P47
Q15617994
USER
Which administrative territories have a shared border with Croatia, Colombia and Burkina Faso ?
(Q224,P47,c(Q15617994)) (Q739,P47,c(Q15617994)) (Q965,P47,c(Q15617994))
action union
action filter_type
action find
entity Q224
relation P47
type Q15617994
action filter_type
action find
entity Q739
relation P47
type Q15617994
action filter_type
action find
entity Q965
relation P47
type Q15617994
['Q224', 'P47', {'concept': 'Q15617994'}] ['Q739', 'P47', {'concept': 'Q15617994'}] ['Q965', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { ?d rdf:type ontology:Q15617994 . resource:Q224 property:P47 ?d } UNION { ?d rdf:type ontology:Q15617994 . resource:Q739 property:P47 ?d } }
Croatia Colombia Burkina Faso
action union
action filter_type
action find
entity Croatia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Colombia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Burkina Faso
relation shares border with
type designation for an administrative territorial entity
['Croatia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Colombia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Burkina Faso', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Croatia property:shares_border_with ?d } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Colombia property:shares_border_with ?d } }
[]
designation for an administrative territorial entity
Q155 Q225 Q28
SYSTEM
Brazil, Bosnia and Herzegovina, Hungary
Q225 Q215 Q236 Q403 Q28 Q804 Q717 Q811 Q155 Q736 Q419 Q1032 Q1008 Q962 Q945 Q117 Q912
(Q224,P47,c(Q15617994)) (Q739,P47,c(Q15617994)) (Q965,P47,c(Q15617994))
action union
action filter_type
action find
entity Q224
relation P47
type Q15617994
action filter_type
action find
entity Q739
relation P47
type Q15617994
action filter_type
action find
entity Q965
relation P47
type Q15617994
[ANSWERS] have a shared border with Croatia, Colombia and Burkina Faso
['Q224', 'P47', {'concept': 'Q15617994'}] ['Q739', 'P47', {'concept': 'Q15617994'}] ['Q965', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { ?d rdf:type ontology:Q15617994 . resource:Q224 property:P47 ?d } UNION { ?d rdf:type ontology:Q15617994 . resource:Q739 property:P47 ?d } }
Bosnia and Herzegovina Slovenia Montenegro Serbia Hungary Panama Venezuela Nicaragua Brazil Ecuador Peru Niger Côte d'Ivoire Benin Togo Ghana Mali
Brazil, Bosnia and Herzegovina and Hungary have a shared border with Croatia, Colombia and Burkina Faso
Brazil Bosnia and Herzegovina Hungary
action union
action filter_type
action find
entity Croatia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Colombia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Burkina Faso
relation shares border with
type designation for an administrative territorial entity
['Croatia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Colombia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Burkina Faso', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Croatia property:shares_border_with ?d } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Colombia property:shares_border_with ?d } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q155 Q225 Q28
P463
Q43229
USER
Which organizations were Brazil, Bosnia and Herzegovina and Hungary a member of ?
(Q155,P463,c(Q43229)) (Q225,P463,c(Q43229)) (Q28,P463,c(Q43229))
action union
action filter_type
action find
entity Q155
relation P463
type Q43229
action filter_type
action find
entity Q225
relation P463
type Q43229
action filter_type
action find
entity Q28
relation P463
type Q43229
['Q155', 'P463', {'concept': 'Q43229'}] ['Q225', 'P463', {'concept': 'Q43229'}] ['Q28', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?x WHERE { { resource:Q155 property:P463 ?x . ?x rdf:type ontology:Q43229 } UNION { resource:Q225 property:P463 ?x . ?x rdf:type ontology:Q43229 } }
Brazil Bosnia and Herzegovina Hungary
action union
action filter_type
action find
entity Brazil
relation member of
type organization
action filter_type
action find
entity Bosnia and Herzegovina
relation member of
type organization
action filter_type
action find
entity Hungary
relation member of
type organization
['Brazil', 'member of', {'concept': 'organization'}] ['Bosnia and Herzegovina', 'member of', {'concept': 'organization'}] ['Hungary', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?x WHERE { { resource:Brazil property:member_of ?x . ?x rdf:type ontology:organization } UNION { resource:Bosnia_and_Herzegovina property:member_of ?x . ?x rdf:type ontology:organization } }
[]
organization
Q151991 Q7825 Q7825
SYSTEM
European Southern Observatory for 1st, World Trade Organization for 2nd, 3rd
Q340195 Q191384 Q182500 Q123759 Q1045401 Q7825 Q656801 Q151991 Q123209 Q243630 Q827525 Q191384 Q899770 Q656801 Q827525 Q191384 Q899770 Q41550 Q656801 Q7825 Q827525
(Q155,P463,c(Q43229)) (Q225,P463,c(Q43229)) (Q28,P463,c(Q43229))
action union
action filter_type
action find
entity Q155
relation P463
type Q43229
action filter_type
action find
entity Q225
relation P463
type Q43229
action filter_type
action find
entity Q28
relation P463
type Q43229
[ANSWERS]
['Q155', 'P463', {'concept': 'Q43229'}] ['Q225', 'P463', {'concept': 'Q43229'}] ['Q28', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?x WHERE { { resource:Q155 property:P463 ?x . ?x rdf:type ontology:Q43229 } UNION { resource:Q225 property:P463 ?x . ?x rdf:type ontology:Q43229 } }
African Development Bank International Bank for Reconstruction and Development Community of Portuguese Language Countries Organization of American States Community of Latin American and Caribbean States World Trade Organization International Finance Corporation European Southern Observatory Latin Union BRICS International Development Association International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes International Finance Corporation International Development Association International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development International Finance Corporation World Trade Organization International Development Association
European Southern Observatory, World Trade Organization and World Trade Organization were Brazil, Bosnia and Herzegovina and Hungary a member of
European Southern Observatory World Trade Organization World Trade Organization
action union
action filter_type
action find
entity Brazil
relation member of
type organization
action filter_type
action find
entity Bosnia and Herzegovina
relation member of
type organization
action filter_type
action find
entity Hungary
relation member of
type organization
['Brazil', 'member of', {'concept': 'organization'}] ['Bosnia and Herzegovina', 'member of', {'concept': 'organization'}] ['Hungary', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?x WHERE { { resource:Brazil property:member_of ?x . ?x rdf:type ontology:organization } UNION { resource:Bosnia_and_Herzegovina property:member_of ?x . ?x rdf:type ontology:organization } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q224
P1532
Q502895
USER
Which people represent Croatia ?
(c(Q502895),P1532,Q224)
action filter_type
action find_reverse
entity Q224
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q224']
SELECT DISTINCT ?h WHERE { ?h property:P1532 resource:Q224 . ?h rdf:type ontology:Q502895 }
Croatia
action filter_type
action find_reverse
entity Croatia
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Croatia']
SELECT DISTINCT ?h WHERE { ?h property:country_for_sport resource:Croatia . ?h rdf:type ontology:common_name }
[]
common name
Q23008480 Q26016382
SYSTEM
Marija Vrajić, Ivana Lončarek
Q23008480 Q26016382
(c(Q502895),P1532,Q224)
action filter_type
action find_reverse
entity Q224
relation P1532
type Q502895
And [ANSWERS] represent Croatia
[{'concept': 'Q502895'}, 'P1532', 'Q224']
SELECT DISTINCT ?h WHERE { ?h property:P1532 resource:Q224 . ?h rdf:type ontology:Q502895 }
Marija Vrajić Ivana Lončarek
And Marija Vrajić and Ivana Lončarek represent Croatia
Marija Vrajić Ivana Lončarek
action filter_type
action find_reverse
entity Croatia
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Croatia']
SELECT DISTINCT ?h WHERE { ?h property:country_for_sport resource:Croatia . ?h rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q26016382
P2416
Q31629
USER
Which type of sport was that person a contestant of ?
(Q26016382,P2416,c(Q31629))
action filter_type
action find
entity Q26016382
relation P2416
type Q31629
['Q26016382', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?s WHERE { resource:Q26016382 property:P2416 ?s . ?s rdf:type ontology:Q31629 }
Ivana Lončarek
action filter_type
action find
entity Ivana Lončarek
relation sports discipline competed in
type type of sport
['Ivana Lončarek', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?s WHERE { resource:Ivana_Lončarek property:sports_discipline_competed_in ?s . ?s rdf:type ontology:type_of_sport }
[]
type of sport
Clarification for simple ques.
Q26016382
SYSTEM
Did you mean Ivana Lončarek ?
Q23008480 Q26016382
(Q23008480,P2416,c(Q31629)) (Q26016382,P2416,c(Q31629))
[ANSWER]
['Q23008480', 'P2416', {'concept': 'Q31629'}] ['Q26016382', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?s WHERE { resource:Q26016382 property:P2416 ?s . ?s rdf:type ontology:Q31629 }
Marija Vrajić Ivana Lončarek
Did you mean Ivana Lončarek ?
Ivana Lončarek
['Marija Vrajić', 'sports discipline competed in', {'concept': 'type of sport'}] ['Ivana Lončarek', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?s WHERE { resource:Ivana_Lončarek property:sports_discipline_competed_in ?s . ?s rdf:type ontology:type_of_sport }
[]
Simple Question (Coreferenced)
USER
Yes
(Q26016382,P2416,c(Q31629))
['Q26016382', 'P2416', {'concept': 'Q31629'}]
['Ivana Lončarek', 'sports discipline competed in', {'concept': 'type of sport'}]
[]
Q164731
SYSTEM
100 metres hurdles
Q164731
(Q26016382,P2416,c(Q31629))
action filter_type
action find
entity Q26016382
relation P2416
type Q31629
[ANSWER] was that person a contestant of
['Q26016382', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?s WHERE { resource:Q26016382 property:P2416 ?s . ?s rdf:type ontology:Q31629 }
100 metres hurdles
100 metres hurdles was that person a contestant of
100 metres hurdles
action filter_type
action find
entity Ivana Lončarek
relation sports discipline competed in
type type of sport
['Ivana Lončarek', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?s WHERE { resource:Ivana_Lončarek property:sports_discipline_competed_in ?s . ?s rdf:type ontology:type_of_sport }
[]