Simple Question (Direct)
Simple Question
Q1126
P17
Q15617994
USER
Which administrative territory is Luxembourg present in ?
(Q1126,P17,c(Q15617994))
action filter_type
action find
entity Q1126
relation P17
type Q15617994
['Q1126', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q1126 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Luxembourg
action filter_type
action find
entity Luxembourg
relation country
type designation for an administrative territorial entity
['Luxembourg', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Luxembourg property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31
SYSTEM
Belgium
Q31
(Q1126,P17,c(Q15617994))
action filter_type
action find
entity Q1126
relation P17
type Q15617994
Luxembourg is in [ANSWER]
['Q1126', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q1126 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Belgium
Luxembourg is in Belgium
Belgium
action filter_type
action find
entity Luxembourg
relation country
type designation for an administrative territorial entity
['Luxembourg', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Luxembourg property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1126
P6
Q502895
USER
Who is the head of the government of Luxembourg ?
(Q1126,P6,c(Q502895))
action filter_type
action find
entity Q1126
relation P6
type Q502895
['Q1126', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q1126 property:P6 ?r }
Luxembourg
action filter_type
action find
entity Luxembourg
relation head of government
type common name
['Luxembourg', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Luxembourg property:head_of_government ?r }
[]
common name
Q22582456
SYSTEM
Olivier Schmitz
Q22582456
(Q1126,P6,c(Q502895))
action filter_type
action find
entity Q1126
relation P6
type Q502895
The head of the government of Luxembourg is Prince [ANSWER]
['Q1126', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q1126 property:P6 ?r }
Olivier Schmitz
The head of the government of Luxembourg is Prince Olivier Schmitz
Olivier Schmitz
action filter_type
action find
entity Luxembourg
relation head of government
type common name
['Luxembourg', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Luxembourg property:head_of_government ?r }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1765399
Q502895
USER
And also tell me about Torrefeta i Florejacs?
(Q1765399,P6,c(Q502895))
action filter_type
action find
entity Q1765399
relation P6
type Q502895
['Q1765399', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q1765399 property:P6 ?x . ?x rdf:type ontology:Q502895 }
Torrefeta i Florejacs
action filter_type
action find
entity Torrefeta i Florejacs
relation head of government
type common name
['Torrefeta i Florejacs', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Torrefeta_i_Florejacs property:head_of_government ?x . ?x rdf:type ontology:common_name }
[]
common name
Q14088088
SYSTEM
Nuria Magrans Anglés
Q14088088
(Q1765399,P6,c(Q502895))
action filter_type
action find
entity Q1765399
relation P6
type Q502895
[ANSWER]
['Q1765399', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q1765399 property:P6 ?x . ?x rdf:type ontology:Q502895 }
Nuria Magrans Anglés
Nuria Magrans Anglés
action filter_type
action find
entity Torrefeta i Florejacs
relation head of government
type common name
['Torrefeta i Florejacs', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Torrefeta_i_Florejacs property:head_of_government ?x . ?x rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q31
P463
Q1048835 Q180516
USER
How many political territories and rooms had Belgium as their member ?
(Q31,P463,c(Q1048835)) (Q31,P463,c(Q180516))
action count
action union
action filter_type
action find
entity Q31
relation P463
type Q1048835
action filter_type
action find
entity Q31
relation P463
type Q180516
['Q31', 'P463', {'concept': 'Q1048835'}] ['Q31', 'P463', {'concept': 'Q180516'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { ?x rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q180516 ) } }
Belgium
action count
action union
action filter_type
action find
entity Belgium
relation member of
type political territorial entity
action filter_type
action find
entity Belgium
relation member of
type room
['Belgium', 'member of', {'concept': 'political territorial entity'}] ['Belgium', 'member of', {'concept': 'room'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { ?x rdf:type ?h . VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:room ) } }
[]
political territorial entity room
SYSTEM
1 political territories and 1 rooms
Q13116 Q141720
(Q31,P463,c(Q1048835)) (Q31,P463,c(Q180516))
action count
action union
action filter_type
action find
entity Q31
relation P463
type Q1048835
action filter_type
action find
entity Q31
relation P463
type Q180516
[ANSWER]
['Q31', 'P463', {'concept': 'Q1048835'}] ['Q31', 'P463', {'concept': 'Q180516'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { ?x rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q180516 ) } }
Benelux European Air Transport Command
1 political territories and 1 rooms
action count
action union
action filter_type
action find
entity Belgium
relation member of
type political territorial entity
action filter_type
action find
entity Belgium
relation member of
type room
['Belgium', 'member of', {'concept': 'political territorial entity'}] ['Belgium', 'member of', {'concept': 'room'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { ?x rdf:type ?h . VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:room ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22582456
P39
Q294414
USER
Which public office was a position held by Olivier Schmitz ?
(Q22582456,P39,c(Q294414))
action filter_type
action find
entity Q22582456
relation P39
type Q294414
['Q22582456', 'P39', {'concept': 'Q294414'}]
SELECT DISTINCT ?i WHERE { resource:Q22582456 property:P39 ?i . ?i rdf:type ontology:Q294414 }
Olivier Schmitz
action filter_type
action find
entity Olivier Schmitz
relation position held
type public office
['Olivier Schmitz', 'position held', {'concept': 'public office'}]
SELECT DISTINCT ?i WHERE { resource:Olivier_Schmitz property:position_held ?i . ?i rdf:type ontology:public_office }
[]
public office
Q4557944
SYSTEM
Governor (Belgium)
Q4557944
(Q22582456,P39,c(Q294414))
action filter_type
action find
entity Q22582456
relation P39
type Q294414
[ANSWER] was a position held by Olivier Schmitz
['Q22582456', 'P39', {'concept': 'Q294414'}]
SELECT DISTINCT ?i WHERE { resource:Q22582456 property:P39 ?i . ?i rdf:type ontology:Q294414 }
Governor (Belgium)
Governor (Belgium) was a position held by Olivier Schmitz
Governor (Belgium)
action filter_type
action find
entity Olivier Schmitz
relation position held
type public office
['Olivier Schmitz', 'position held', {'concept': 'public office'}]
SELECT DISTINCT ?i WHERE { resource:Olivier_Schmitz property:position_held ?i . ?i rdf:type ontology:public_office }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q29 Q1765399
P47 P17
Q1048835
USER
Which political territories are bordered by Torrefeta i Florejacs and are located in Spain ?
AND((c(Q1048835),P47,Q1765399), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q1765399
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q1765399'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?b WHERE { ?b property:P47 resource:Q1765399 . ?b property:P17 resource:Q29 . ?b rdf:type ontology:Q1048835 }
Spain Torrefeta i Florejacs
action filter_type
action intersection
action find_reverse
entity Torrefeta i Florejacs
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Torrefeta i Florejacs'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?b WHERE { ?b property:shares_border_with resource:Torrefeta_i_Florejacs . ?b property:country resource:Spain . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1769572 Q1900701 Q1767532 Q1900803 Q967526 Q984645 Q1903557 Q508950 Q1917568 Q847011
SYSTEM
Some of them are Oliola, Sanaüja, Pinell de Solsonès, Els Plans de Sió, Sant Guim de la Plana, Guissona, Vilanova de l'Aguda, Massoteres, Sant Ramon, Cervera
Q1901397 Q508950 Q1917568 Q1769572 Q1900701 Q1905594 Q1770856 Q1900803 Q847011 Q1903557 Q1767532 Q984645 Q967526
AND((c(Q1048835),P47,Q1765399), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q1765399
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
[ANSWERS] are bordered by Torrefeta i Florejacs and are located in Spain
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q1765399'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?b WHERE { ?b property:P47 resource:Q1765399 . ?b property:P17 resource:Q29 . ?b rdf:type ontology:Q1048835 }
Tarroja de Segarra Massoteres Sant Ramon Oliola Sanaüja Ossó de Sió Cabanabona Els Plans de Sió Cervera Vilanova de l'Aguda Pinell de Solsonès Guissona Sant Guim de la Plana
Oliola, Sanaüja, Pinell de Solsonès, Els Plans de Sió, Sant Guim de la Plana, Guissona, Vilanova de l'Aguda, Massoteres, Sant Ramon and Cervera are bordered by Torrefeta i Florejacs and are located in Spain
Oliola Sanaüja Pinell de Solsonès Els Plans de Sió Sant Guim de la Plana Guissona Vilanova de l'Aguda Massoteres Sant Ramon Cervera
action filter_type
action intersection
action find_reverse
entity Torrefeta i Florejacs
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Torrefeta i Florejacs'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?b WHERE { ?b property:shares_border_with resource:Torrefeta_i_Florejacs . ?b property:country resource:Spain . ?b rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q27849295 Q1903557
P17
Q15617994
USER
Which administrative territories are Vilanova de l'Aguda or Pont-de-Nant situated in ?
OR((Q1903557,P17,c(Q15617994)), (Q27849295,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1903557
relation P17
action find
entity Q27849295
relation P17
type Q15617994
{'OR': [['Q1903557', 'P17', {'concept': 'Q15617994'}], ['Q27849295', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { ?g property:P17 ?a . VALUES ( ?g ) { ( resource:Q27849295 ) ( resource:Q1903557 ) } } . ?a rdf:type ontology:Q15617994 }
Pont-de-Nant Vilanova de l'Aguda
action filter_type
action union
action find
entity Vilanova de l'Aguda
relation country
action find
entity Pont-de-Nant
relation country
type designation for an administrative territorial entity
{'OR': [["Vilanova de l'Aguda", 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pont-de-Nant', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?g property:country ?a . VALUES ( ?g ) { ( resource:Pont-de-Nant ) ( resource:Vilanova_de_l'Aguda ) } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q39
SYSTEM
Spain, Switzerland
Q29 Q39
OR((Q1903557,P17,c(Q15617994)), (Q27849295,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1903557
relation P17
action find
entity Q27849295
relation P17
type Q15617994
[ANSWERS] are Vilanova de l'Aguda or Pont-de-Nant situated in
{'OR': [['Q1903557', 'P17', {'concept': 'Q15617994'}], ['Q27849295', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { ?g property:P17 ?a . VALUES ( ?g ) { ( resource:Q27849295 ) ( resource:Q1903557 ) } } . ?a rdf:type ontology:Q15617994 }
Spain Switzerland
Spain and Switzerland are Vilanova de l'Aguda or Pont-de-Nant situated in
Spain Switzerland
action filter_type
action union
action find
entity Vilanova de l'Aguda
relation country
action find
entity Pont-de-Nant
relation country
type designation for an administrative territorial entity
{'OR': [["Vilanova de l'Aguda", 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pont-de-Nant', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?g property:country ?a . VALUES ( ?g ) { ( resource:Pont-de-Nant ) ( resource:Vilanova_de_l'Aguda ) } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q1190554 Q223557 Q15617994
USER
Which administrative territories have min number of events and physical objects as their namesake ?
(c(Q15617994),P138,c(Q1190554)|c(Q223557))
action argmin
action union
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
action find_tuple_counts
relation P138
type Q15617994
type Q223557
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q1190554'}, {'concept': 'Q223557'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?h WHERE { { ?h rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1190554 . ?h property:P138 ?q } UNION { ?h property:P138 ?q . ?q rdf:type ontology:Q223557 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?h } } . FILTER ( ?v = ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?t WHERE { { ?t property:P138 ?a . ?t rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1190554 } UNION { ?t rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q223557 . ?t property:P138 ?a } } GROUP BY ?t } }
action argmin
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type physical object
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'event'}, {'concept': 'physical object'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?h WHERE { { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:event . ?h property:named_after ?q } UNION { ?h property:named_after ?q . ?q rdf:type ontology:physical_object . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?h } } . FILTER ( ?v = ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?t WHERE { { ?t property:named_after ?a . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:event } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:physical_object . ?t property:named_after ?a } } GROUP BY ?t } }
[]
event physical object designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q701 Q158876 Q968630 Q705 Q3216 Q707 Q1087137 Q709 Q1421544 Q12789 Q1027 Q12779 Q124000 Q12631 Q1041 Q3305157 Q492430 Q668 Q14697553 Q10919 Q2567507 Q3278 Q12563 Q142 Q33 Q685048 Q21671144 Q801 Q12538 Q1093 Q12536 Q12740 Q189 Q12820 Q1090684 Q657 Q3184 Q1098820 Q1452650 Q12594 Q3349 Q378004 Q568751 Q2316529 Q2803031 Q711 Q710 Q1979 Q625403 Q691368 Q1817784 Q199974 Q2998020 Q3083 Q7408058 Q1939894 Q1028 Q12772 Q3286 Q691890 Q3249 Q12607 Q2310748 Q3164 Q15055472 Q1465069 Q12572 Q554491 Q159 Q686924 Q598193 Q1090678 Q12556 Q12526 Q12689 Q12753 Q624428 Q155 Q1232680 Q2527360 Q699731 Q290739 Q3377 Q12576 Q3372 Q231168 Q739 Q12589 Q2521404 Q12574 Q957825 Q1270638 Q3093 Q161258 Q1965 Q979470 Q3259 Q10903 Q786 Q1142326 Q10957559 Q5015782 Q676543 Q1270648 Q2758 Q12694 Q3563282 Q12745 Q12515 Q451448 Q12517 Q3368 Q32 Q31 Q30 Q924 Q36 Q12770 Q928 Q3361 Q39 Q3364 Q302479 Q2514636 Q986 Q541095 Q20211 Q3148 Q219 Q1390630 Q736 Q2567535 Q12798 Q4336071 Q1032 Q1508927 Q11140 Q3068 Q12792 Q676178 Q1268811 Q1338277 Q236 Q492437 Q230 Q221 Q232 Q233 Q2304605 Q1914678 Q282355 Q238 Q12620 Q566032 Q12661 Q20 Q4229407 Q621869 Q1042 Q475659 Q691265 Q28 Q1366860 Q12788 Q12584 Q12580 Q1025 Q683555 Q1020 Q2009 Q843 Q12709 Q184 Q548396 Q1029 Q3336 Q1206596 Q3334 Q541811 Q707950 Q3131 Q7084 Q1904 Q27495866 Q12784 Q12578 Q12717 Q3139 Q12782 Q3342 Q12559 Q558771 Q12679 Q12700 Q12703 Q1101 Q12675 Q811 Q1270623 Q347 Q71090 Q1989 Q4165945 Q21915715 Q902 Q153402 Q3207 Q974 Q3120 Q894972 Q894971 Q14810 Q967 Q962 Q963 Q2921370 Q694 Q3125 Q114 Q117 Q81751 Q12569 Q2921378 Q1788988 Q754 Q752 Q750 Q12730 Q12657 Q20095245 Q217 Q12736 Q12642 Q160307 Q12761 Q505607 Q6661829 Q2295479 Q2115819 Q912 Q1270568 Q1270636 Q2136219 Q3514973 Q1090691 Q12765 Q1005 Q977 Q1019 Q1008 Q3509886 Q971 Q3194 Q3113 Q568833 Q252157 Q12652 Q3110307 Q894973 Q541589 Q20310 Q760 Q1033 Q11301 Q1030 Q12804 Q12808 Q894970 Q12722 Q784 Q3326 Q79 Q1234961 Q12553 Q3528124 Q775 Q15060143 Q776 Q810 Q770 Q773 Q46130 Q27 Q1011 Q1013 Q480103 Q4149 Q12549 Q3266 Q12626 Q8575586 Q12543 Q3105 Q12545 Q1558632 Q1913193 Q4066675 Q12758 Q599866 Q1579364 Q731547 Q12816 Q2938 Q12751 Q1951 Q2236821 Q1952 Q2528268 Q3353 Q3357 Q1231 Q13401101 Q558796 Q12564
(c(Q15617994),P138,c(Q1190554)|c(Q223557))
action argmin
action union
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
action find_tuple_counts
relation P138
type Q15617994
type Q223557
[ANSWERS] have min number of events and physical objects as their namesake
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q1190554'}, {'concept': 'Q223557'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?h WHERE { { ?h rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1190554 . ?h property:P138 ?q } UNION { ?h property:P138 ?q . ?q rdf:type ontology:Q223557 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?h } } . FILTER ( ?v = ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?t WHERE { { ?t property:P138 ?a . ?t rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1190554 } UNION { ?t rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q223557 . ?t property:P138 ?a } } GROUP BY ?t } }
North Holland Reinickendorf Taro Zeeland Aveyron Flevoland Rockaway, New Jersey Marshall Islands Wettertal Var Mauritius Tarn-et-Garonne Victoria Meuse Senegal Mella Bouches-de-l'Elbe India Neetzow-Liepen Medebach Arno Charente-Maritime Landes France Finland Simplon Mezhetchina Israel Haute-Garonne Limburg Abbasid caliphate Sarthe Iceland Yvelines Montserrat Chad Ariège Gênes Ombrone Marne Côtes-d'Armor Forêts Mont-Tonnerre Noordpolderzijl Pasop Mongolia Kiribati Prince Edward Island Schwielowsee Léman Leninkent, Makhachkala, Republic of Dagestan Hürtgenwald Corse Ain Sam Rayburn Independent School District Upper Oka Principalities Morocco Tarn Cher Corcyre Calvados Haute-Marne Liamone Ardennes Gehlsbach Frise Haute-Loire Banan District Russia Mer-Égée Apennins Sègre Indre-et-Loire Gironde Pas-de-Calais Seine-et-Marne Biebertal Brazil Ithaque Stura Wied Sesia Eure-et-Loir Lot Eure Zuyderzée Colombia Manche Veytal Loiret Yssel-Supérieur Rhine Aisne Clipperton Island New Brunswick Seine-et-Oise Cantal Finnentrop Dominican Republic Seine Moldavia Cabot Public Schools Sankt Thomas Sieg Mönchengladbach Puy-de-Dôme Rumi District Savoie Gard Am Salzhaff Gers Essonne Luxembourg Belgium United States of America Tanzania Poland Somme Philippines Doubs Switzerland Drôme Ems-Occidental Vogtei Eritrea Rhin-et-Moselle Peenehagen Ardèche Bulgaria Ourthe Ecuador Pô Vendée Ordzhonikidzevskiy raion of Zaporizhzhya Niger Méditerranée Möhnesee Loire-Atlantique Vaucluse Viereck Dyle Sambre-et-Meuse Montenegro Bouches-du-Weser Georgia Republic of Macedonia Kazakhstan Malta Spitsbergen Vlagtwedder-Veldhuis Nesse-Apfelstädt San Marino Mayenne Rheinbreitbach Nord Norway Komarovsky, Orenburg Oblast Georgsdorf Seychelles Sassenburg Mont-Terrible Hungary Escaut Val-de-Marne Maine-et-Loire Lozère Mauritania Vyronas Malawi Yukon Pakistan Pyrénées-Orientales Belarus Pommerby Mozambique Corse-du-Sud Deux-Nèthes Haute-Corse Ems-Oriental Muldestausee Alpes-de-Haute-Provence Seevetal Ontario Corse Val-d'Oise Lot-et-Garonne Bas-Rhin Alpes-Maritimes Territoire de Belfort Côte-d'Or Isère Wedendorfersee Orne Hautes-Pyrénées Pyrénées-Atlantiques North Brabant Oise Nicaragua Meurthe Liechtenstein Augustusburg Saskatchewan Sheikh Zayed City Kloster Tempzin Bangladesh Roer Aude Democratic Republic of the Congo Jura Bouches-de-l'Yssel Bouches-de-l'Escaut Nettetal Burundi Benin Botswana Bouches-de-l'Èbre-Montserrat South Holland Hautes-Alpes Kenya Ghana Niedereschach Loire Bouches-de-l'Èbre Trasimène Trinidad and Tobago Groningen Bolivia Haute-Saône Nièvre Sept-Saints Republic of Moldova Saône-et-Loire Morbihan Fatimid caliphate Seine-Saint-Denis Philippsreut Llanvaches Zandberg, Zeeland Klein-Ulsda Mali Ems Ruhr Amsterdam, Saskatchewan Tanaro Ter Deux-Sèvres Gambia Djibouti Madagascar Côte d'Ivoire Sègre-Ter Republic of the Congo Aube Allier Meuse-Inférieure Sarre Moselle Golo Bouches-du-Rhin Ems-Supérieur Kuckssee Saint Lucia Nigeria Ennepetal Namibia Vienne Haute-Vienne Bouches-de-la-Meuse Haut-Rhin Dominica Corrèze Egypt Doire Indre Tibre Gelderland Stepenitztal Utrecht Jordan Friesland Overijssel Rhône Ireland Cape Verde Lesotho Amt Volmarstein Neustadt an der Weinstraße Ille-et-Vilaine Charente Meurthe-et-Moselle Umayyad Caliphate Hauts-de-Seine Vosges Hérault Rome Chkalovsk Microdistrict Annino Seine-Maritime Lev Tolstoy Lys Lippe Yonne Leverkusen Haute-Savoie Alberta Rhône-et-Loire Nova Scotia Mont-Blanc Creuse Dordogne Kosovo Region Brandon Valley School District Obere Warnow Loir-et-Cher
Brazil, United States of America and Georgia have min number of events and physical objects as their namesake
Brazil United States of America Georgia
action argmin
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type physical object
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'event'}, {'concept': 'physical object'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?h WHERE { { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:event . ?h property:named_after ?q } UNION { ?h property:named_after ?q . ?q rdf:type ontology:physical_object . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?h } } . FILTER ( ?v = ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?t WHERE { { ?t property:named_after ?a . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:event } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:physical_object . ?t property:named_after ?a } } GROUP BY ?t } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1539810 Q4557944
P495 P17
Q15617994
USER
Which administrative territories are Governor (Belgium) located in or are the origins of Shape of Despair ?
OR((Q4557944,P17,c(Q15617994)), (Q1539810,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q4557944
relation P17
action find
entity Q1539810
relation P495
type Q15617994
{'OR': [['Q4557944', 'P17', {'concept': 'Q15617994'}], ['Q1539810', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q4557944 property:P17 ?w } UNION { resource:Q1539810 property:P495 ?w } } . ?w rdf:type ontology:Q15617994 }
Shape of Despair Governor (Belgium)
action filter_type
action union
action find
entity Governor (Belgium)
relation country
action find
entity Shape of Despair
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Governor (Belgium)', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Shape of Despair', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Governor_(Belgium) property:country ?w } UNION { resource:Shape_of_Despair property:country_of_origin ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q31
SYSTEM
Finland, Belgium
Q33 Q31
OR((Q4557944,P17,c(Q15617994)), (Q1539810,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q4557944
relation P17
action find
entity Q1539810
relation P495
type Q15617994
The [ANSWERS] are Governor (Belgium) located in or are the origins of Shape of Despair
{'OR': [['Q4557944', 'P17', {'concept': 'Q15617994'}], ['Q1539810', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q4557944 property:P17 ?w } UNION { resource:Q1539810 property:P495 ?w } } . ?w rdf:type ontology:Q15617994 }
Finland Belgium
The Finland and Belgium are Governor (Belgium) located in or are the origins of Shape of Despair
Finland Belgium
action filter_type
action union
action find
entity Governor (Belgium)
relation country
action find
entity Shape of Despair
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Governor (Belgium)', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Shape of Despair', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Governor_(Belgium) property:country ?w } UNION { resource:Shape_of_Despair property:country_of_origin ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Do Australia have diplomatic associations with those administrative territories ?
(Q408,P530,Q33) (Q408,P530,Q31)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q33'] ['Q408', 'P530', 'Q31']
ASK WHERE { VALUES ( ?n ) { ( resource:Q33 ) ( resource:Q31 ) } . resource:Q408 property:P530 ?n }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Finland'] ['Australia', 'diplomatic relation', 'Belgium']
ASK WHERE { VALUES ( ?n ) { ( resource:Finland ) ( resource:Belgium ) } . resource:Australia property:diplomatic_relation ?n }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q33) (Q408,P530,Q31)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q33'] ['Q408', 'P530', 'Q31']
ASK WHERE { VALUES ( ?n ) { ( resource:Q33 ) ( resource:Q31 ) } . resource:Q408 property:P530 ?n }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Finland'] ['Australia', 'diplomatic relation', 'Belgium']
ASK WHERE { VALUES ( ?n ) { ( resource:Finland ) ( resource:Belgium ) } . resource:Australia property:diplomatic_relation ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1539810
P175
Q2031291
USER
Who performed Shape of Despair ?
(c(Q2031291),P175,Q1539810)
action filter_type
action find_reverse
entity Q1539810
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q1539810']
SELECT DISTINCT ?y WHERE { ?y property:P175 resource:Q1539810 . ?y rdf:type ontology:Q2031291 }
Shape of Despair
action filter_type
action find_reverse
entity Shape of Despair
relation performer
type release
[{'concept': 'release'}, 'performer', 'Shape of Despair']
SELECT DISTINCT ?y WHERE { ?y property:performer resource:Shape_of_Despair . ?y rdf:type ontology:release }
[]
release
Q1152225 Q1150543 Q1152247
SYSTEM
Angels of Distress, Illusion's Play, Shades Of...
Q20813739 Q1150543 Q1152225 Q1152247
(c(Q2031291),P175,Q1539810)
action filter_type
action find_reverse
entity Q1539810
relation P175
type Q2031291
[ANSWERS] performed Shape of Despair
[{'concept': 'Q2031291'}, 'P175', 'Q1539810']
SELECT DISTINCT ?y WHERE { ?y property:P175 resource:Q1539810 . ?y rdf:type ontology:Q2031291 }
Monotony Fields Illusion's Play Angels of Distress Shades Of...
Angels of Distress, Illusion's Play and Shades Of... performed Shape of Despair
Angels of Distress Illusion's Play Shades Of...
action filter_type
action find_reverse
entity Shape of Despair
relation performer
type release
[{'concept': 'release'}, 'performer', 'Shape of Despair']
SELECT DISTINCT ?y WHERE { ?y property:performer resource:Shape_of_Despair . ?y rdf:type ontology:release }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1152225 Q1150543 Q1152247
P407
Q34770
USER
What languages are those releases composed in ?
(Q1152225,P407,c(Q34770)) (Q1150543,P407,c(Q34770)) (Q1152247,P407,c(Q34770))
action filter_type
action find
entity prev_answer
relation P407
type Q34770
['Q1152225', 'P407', {'concept': 'Q34770'}] ['Q1150543', 'P407', {'concept': 'Q34770'}] ['Q1152247', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:Q20813739 ) ( resource:Q1150543 ) ( resource:Q1152225 ) } . ?r rdf:type ontology:Q34770 . ?h property:P407 ?r }
Angels of Distress Illusion's Play Shades Of...
action filter_type
action find
entity prev_answer
relation language of work or name
type language
['Angels of Distress', 'language of work or name', {'concept': 'language'}] ["Illusion's Play", 'language of work or name', {'concept': 'language'}] ['Shades Of...', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:Monotony_Fields ) ( resource:Illusion's_Play ) ( resource:Angels_of_Distress ) } . ?r rdf:type ontology:language . ?h property:language_of_work_or_name ?r }
[]
language
Q1860 Q1860 Q1860
SYSTEM
English
Q1860 Q1860 Q1860
(Q1152225,P407,c(Q34770)) (Q1150543,P407,c(Q34770)) (Q1152247,P407,c(Q34770))
action filter_type
action find
entity prev_answer
relation P407
type Q34770
Those releases are composed of [ANSWER], [ANSWER] and [ANSWER]
['Q1152225', 'P407', {'concept': 'Q34770'}] ['Q1150543', 'P407', {'concept': 'Q34770'}] ['Q1152247', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:Q20813739 ) ( resource:Q1150543 ) ( resource:Q1152225 ) } . ?r rdf:type ontology:Q34770 . ?h property:P407 ?r }
English English English
Those releases are composed of English, English and English
English English English
action filter_type
action find
entity prev_answer
relation language of work or name
type language
['Angels of Distress', 'language of work or name', {'concept': 'language'}] ["Illusion's Play", 'language of work or name', {'concept': 'language'}] ['Shades Of...', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:Monotony_Fields ) ( resource:Illusion's_Play ) ( resource:Angels_of_Distress ) } . ?r rdf:type ontology:language . ?h property:language_of_work_or_name ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31
P463
Q874405
USER
What social groups had Belgium as their member ?
(Q31,P463,c(Q874405))
action filter_type
action find
entity Q31
relation P463
type Q874405
['Q31', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?h WHERE { resource:Q31 property:P463 ?h . ?h rdf:type ontology:Q874405 }
Belgium
action filter_type
action find
entity Belgium
relation member of
type social group
['Belgium', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?h WHERE { resource:Belgium property:member_of ?h . ?h rdf:type ontology:social_group }
[]
social group
Q782942 Q8908
SYSTEM
Australia Group, Council of Europe
Q782942 Q8908
(Q31,P463,c(Q874405))
action filter_type
action find
entity Q31
relation P463
type Q874405
[ANSWERS] had Belgium as their member
['Q31', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?h WHERE { resource:Q31 property:P463 ?h . ?h rdf:type ontology:Q874405 }
Australia Group Council of Europe
Australia Group and Council of Europe had Belgium as their member
Australia Group Council of Europe
action filter_type
action find
entity Belgium
relation member of
type social group
['Belgium', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?h WHERE { resource:Belgium property:member_of ?h . ?h rdf:type ontology:social_group }
[]