Simple Question (Direct)
Simple Question
Q3310135
P641
Q349
USER
Which sport was Michel Le Millinaire a part of ?
(Q3310135,P641,c(Q349))
action filter_type
action find
entity Q3310135
relation P641
type Q349
['Q3310135', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q3310135 property:P641 ?l . ?l rdf:type ontology:Q349 }
Michel Le Millinaire
action filter_type
action find
entity Michel Le Millinaire
relation sport
type sport
['Michel Le Millinaire', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Michel_Le_Millinaire property:sport ?l . ?l rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3310135,P641,c(Q349))
action filter_type
action find
entity Q3310135
relation P641
type Q349
Player [ANSWER] was Michel Le Millinaire a part of
['Q3310135', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q3310135 property:P641 ?l . ?l rdf:type ontology:Q349 }
association football
Player association football was Michel Le Millinaire a part of
association football
action filter_type
action find
entity Michel Le Millinaire
relation sport
type sport
['Michel Le Millinaire', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Michel_Le_Millinaire property:sport ?l . ?l rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3310135
P21
Q290
USER
What is the sex of Michel Le Millinaire ?
(Q3310135,P21,c(Q290))
action filter_type
action find
entity Q3310135
relation P21
type Q290
['Q3310135', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q3310135 property:P21 ?a . ?a rdf:type ontology:Q290 }
Michel Le Millinaire
action filter_type
action find
entity Michel Le Millinaire
relation gender
type sex
['Michel Le Millinaire', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Michel_Le_Millinaire property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3310135,P21,c(Q290))
action filter_type
action find
entity Q3310135
relation P21
type Q290
The sex of Michel Le Millinaire is the [ANSWER]
['Q3310135', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q3310135 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
The sex of Michel Le Millinaire is the male
male
action filter_type
action find
entity Michel Le Millinaire
relation gender
type sex
['Michel Le Millinaire', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Michel_Le_Millinaire property:gender ?a . ?a rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q892391 Q3310135
P47 P19
Q20667921
USER
Which french administrative divisions are the birthplace of Michel Le Millinaire or share the border with Marre ?
OR((Q3310135,P19,c(Q20667921)), (Q892391,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q3310135
relation P19
action find
entity Q892391
relation P47
type Q20667921
{'OR': [['Q3310135', 'P19', {'concept': 'Q20667921'}], ['Q892391', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3310135 property:P19 ?f } UNION { resource:Q892391 property:P47 ?f } } . ?f rdf:type ontology:Q20667921 }
Marre Michel Le Millinaire
action filter_type
action union
action find
entity Michel Le Millinaire
relation place of birth
action find
entity Marre
relation shares border with
type type of french administrative division
{'OR': [['Michel Le Millinaire', 'place of birth', {'concept': 'type of french administrative division'}], ['Marre', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Michel_Le_Millinaire property:place_of_birth ?f } UNION { resource:Marre property:shares_border_with ?f } } . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q223869 Q1048412 Q1060021 Q1385052 Q863894 Q1159381 Q209800 Q724213
SYSTEM
Thierville-sur-Meuse, Champneuville, Charny-sur-Meuse, Fromeréville-les-Vallons, Kergrist-Moëlou, Montzéville, Vacherauville, Chattancourt
Q223869 Q1048412 Q1060021 Q1385052 Q863894 Q1159381 Q209800 Q724213
OR((Q3310135,P19,c(Q20667921)), (Q892391,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q3310135
relation P19
action find
entity Q892391
relation P47
type Q20667921
[ANSWERS] are the birthplace of Michel Le Millinaire or share the border with Marre
{'OR': [['Q3310135', 'P19', {'concept': 'Q20667921'}], ['Q892391', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3310135 property:P19 ?f } UNION { resource:Q892391 property:P47 ?f } } . ?f rdf:type ontology:Q20667921 }
Thierville-sur-Meuse Champneuville Charny-sur-Meuse Fromeréville-les-Vallons Kergrist-Moëlou Montzéville Vacherauville Chattancourt
Thierville-sur-Meuse, Champneuville, Charny-sur-Meuse, Fromeréville-les-Vallons, Kergrist-Moëlou, Montzéville, Vacherauville and Chattancourt are the birthplace of Michel Le Millinaire or share the border with Marre
Thierville-sur-Meuse Champneuville Charny-sur-Meuse Fromeréville-les-Vallons Kergrist-Moëlou Montzéville Vacherauville Chattancourt
action filter_type
action union
action find
entity Michel Le Millinaire
relation place of birth
action find
entity Marre
relation shares border with
type type of french administrative division
{'OR': [['Michel Le Millinaire', 'place of birth', {'concept': 'type of french administrative division'}], ['Marre', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Michel_Le_Millinaire property:place_of_birth ?f } UNION { resource:Marre property:shares_border_with ?f } } . ?f rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q20667921 Q22698 Q1048835
USER
Which french administrative divisions are the etymology of atmost 1 parks and political territories ?
(c(Q22698)|c(Q1048835),P138,c(Q20667921))
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q22698
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q1048835
value 1
[[{'concept': 'Q22698'}, {'concept': 'Q1048835'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) ?r WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:Q22698 ) ( ontology:Q1048835 ) } } GROUP BY ?r } . FILTER ( ?t <= 1 ) }
action atmost
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type park
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type political territorial entity
value 1
[[{'concept': 'park'}, {'concept': 'political territorial entity'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) ?r WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:park ) ( ontology:political_territorial_entity ) } } GROUP BY ?r } . FILTER ( ?t <= 1 ) }
[]
type of french administrative division park political territorial entity
Q12193 Q154748 Q42807
SYSTEM
Brest, Verdun, Nîmes
Q205551 Q3769 Q521432 Q201352 Q901416 Q253721 Q456477 Q132801 Q191119 Q1172337 Q236579 Q1075237 Q321067 Q840218 Q326687 Q181946 Q160199 Q817418 Q842942 Q183910 Q626987 Q633254 Q190974 Q196360 Q180871 Q679894 Q166997 Q1440905 Q269364 Q2426877 Q138648 Q1391563 Q212793 Q2961727 Q6454 Q48958 Q208812 Q9155 Q208943 Q3241770 Q160506 Q193880 Q167152 Q840597 Q329664 Q1241308 Q209069 Q273702 Q181285 Q126668 Q59221 Q903665 Q7158 Q616668 Q264778 Q174032 Q229339 Q135265 Q208889 Q212274 Q161884 Q274327 Q28520 Q46135 Q205116 Q1476 Q154715 Q193899 Q30974 Q182744 Q459683 Q205632 Q623376 Q130994 Q217077 Q809414 Q213317 Q1073264 Q501933 Q694818 Q212987 Q474524 Q22640 Q181886 Q187796 Q193819 Q234270 Q238377 Q762471 Q234274 Q591741 Q729239 Q243866 Q474503 Q251731 Q126675 Q149419 Q1463559 Q201982 Q134674 Q474555 Q636299 Q605656 Q174257 Q471685 Q154724 Q165271 Q163108 Q211604 Q154728 Q12193 Q142410 Q207632 Q476887 Q22739 Q189153 Q22636 Q575565 Q209086 Q195098 Q18199435 Q625570 Q569751 Q209005 Q181269 Q736370 Q1111541 Q203645 Q16532200 Q13917 Q241021 Q208793 Q387460 Q1080717 Q285 Q648164 Q567956 Q204051 Q193877 Q781078 Q202565 Q784536 Q1105062 Q468229 Q174247 Q900479 Q185721 Q1066223 Q1165029 Q148787 Q45797 Q163795 Q530593 Q463304 Q44401 Q212966 Q34001 Q213288 Q470959 Q47465 Q773318 Q14112 Q845975 Q689491 Q688262 Q404783 Q16121 Q22160 Q478105 Q238339 Q271649 Q70285 Q23047 Q989788 Q1100414 Q154748 Q840164 Q134346 Q165090 Q202378 Q6588 Q212959 Q541007 Q968881 Q18199186 Q822303 Q474773 Q666180 Q12130 Q13103683 Q453492 Q208798 Q22690 Q22380 Q207570 Q22754 Q42807 Q22756 Q208794 Q317975 Q233909 Q79815 Q177573 Q206493 Q1217220 Q188750 Q241940 Q18102 Q3413275 Q128466 Q370224 Q288 Q171545 Q204979 Q167141 Q193903 Q131329 Q256175 Q216966 Q917770 Q3413171 Q532352 Q83432 Q279681 Q372111 Q1014746 Q6548 Q175999 Q199682 Q266958 Q6397 Q325946 Q6544 Q316891 Q3413267 Q1348608 Q837748 Q498869 Q40898 Q192548 Q93351 Q1047171 Q256004 Q1440685 Q272528 Q41139 Q191126 Q471902 Q3555080 Q399366 Q461413 Q947091 Q207620 Q467132 Q135104 Q1056120 Q181306 Q3413163 Q475599 Q845191 Q130272 Q221683 Q990774 Q6616 Q182872 Q331232 Q1110622 Q273917 Q20892 Q193826 Q832386
(c(Q22698)|c(Q1048835),P138,c(Q20667921))
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q22698
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q1048835
value 1
[ANSWERS] are the etymology of atmost 1 parks and political territories
[[{'concept': 'Q22698'}, {'concept': 'Q1048835'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) ?r WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:Q22698 ) ( ontology:Q1048835 ) } } GROUP BY ?r } . FILTER ( ?t <= 1 ) }
Mérignac French Guiana Saint-Marcellin Pontoise Lacaune Malakoff Chooz Albi Rambouillet Morogues Semur-en-Auxois Bailleau-Armenonville Nemours Barrême Banon Argenteuil Cherbourg-Octeville Joinville Bonneville-la-Louvet Bayeux Herment Morbier Oradour-sur-Glane Aisy-sur-Armançon Compiègne Aurignac Nevers Ramonville-Saint-Agne Joué-lès-Tours Épinettes Maubeuge Coulmiers Charenton-le-Pont Chavignol Calais Neuilly-sur-Seine Corbeil-Essonnes Lagny-sur-Marne Bagnolet Lion Saint-Denis Chaumont Soissons Le Croisic Le Creusot Passy Domrémy-la-Pucelle Rocroi Cambrai Senlis Vaucouleurs Liverdun Oms Pouligny-Saint-Pierre Loudes Crozant Champigneulles Issy-les-Moulineaux Saint-Ouen Nogent-sur-Marne Bagneux Saint-Maurice Abbeville Créteil Amboise Le Mans Montbéliard Fontenay-sous-Bois Rouen Saint-Quentin Sancerre Aubervilliers Volvic Colmar Camembert Thiézac Ambert Civry Taizé Sassenage Choisy-le-Roi Sainte-Maure-de-Touraine Thionville Châteaudun Orange Vincennes Montélimar Pont-Aven Ver-sur-Mer Manosque Goutte-d'Or Vimoutiers Olivet Valençay Coulommiers Chantilly Munster Villette Clichy Bayonne Castelnau-le-Lez Le Pradet Gèdre Beauvais Rambervillers Bobigny Lens Saint-Malo Montparnasse Toul Brest Dreux Apt Roquefort-sur-Soulzon Hettange-Grande Saint-Cloud Wissembourg Batignolles Pantin Frouard Charonne Langeac Termignon Cachan Alençon Bonneval-sur-Arc Costaros Chalon-sur-Saône Bercy Île-de-France Montrouge Saint-Omer Sainte-Foy-lès-Lyon Champagne Cognac Antrain Isigny-sur-Mer Bonifacio Ivry-sur-Seine Euville Coutances Auteuil Wattignies-la-Victoire Corneville-sur-Risle Mâcon Noisiel Bar-le-Duc Andrézieux-Bouthéon Le Pouliguen Ottmarsheim Dunkirk Valenciennes Chaource Fontaine-de-Vaucluse Cayenne Pompey Roubaix Montbrison Voves Aix-en-Provence Bercy Corsica Caussols Tautavel Champaubert Aiguillon Beaune Phalsbourg Rungis Azincourt Marcq-en-Barœul Étel Cahors Villersexel Taisnières-sur-Hon Verdun La Cadière-d'Azur Angoulême Chambéry Ouessant Périgueux Denain Le Malzieu-Ville Ternes Grenelle Saint-Nectaire Roquebrune-sur-Argens Maroilles Brittany La Chapelle Matignon Cavaillon Metz Créhange Thann Bitche Nîmes Spicheren Lunéville Châtelperron Alfortville Mulhouse Bagnoles Sèvres Laqueuille Saint-Estèphe Givet Saint-Mandé Gros-Caillou Villejuif Noisy-le-Sec Tours Belfort Vézelay Laon Cergy Arras Barbizon Uzès Solutré-Pouilly Picpus La Villette Viroflay Thouars Romainville Cilaos Orléans Le Pré-Saint-Gervais Floirac Rolleboise Avignon Landerneau Libourne Montmorency Bel-Air Varize Brétigny-sur-Orge Brienne-le-Château Nancy Saint-Émilion Vichy Balma Les Lilas Belleville Pauillac Melun Saintes Salles Vaugirard Chevreuse Pont-à-Mousson Romanèche-Thorins Meaux Arcueil Le Kremlin-Bicêtre Décines-Charpieu Digne-les-Bains Clignancourt Gien Javel Chartres Audierne Laguiole Poitiers Fontainebleau Chablis La Bouille Berrias-et-Casteljau Le Mont-Saint-Michel Douai Selles-sur-Cher
Brest, Verdun and Nîmes are the etymology of atmost 1 parks and political territories
Brest Verdun Nîmes
action atmost
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type park
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type political territorial entity
value 1
[[{'concept': 'park'}, {'concept': 'political territorial entity'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) ?r WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:park ) ( ontology:political_territorial_entity ) } } GROUP BY ?r } . FILTER ( ?t <= 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3391867
P1376
Q1048835 Q20667921
USER
Which political territories have more number of french administrative divisions as their capital than Guadalupe District ?
(c(Q20667921),P1376,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action count
action filter_type
action find
entity Q3391867
relation P1376
type Q1048835
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:P1376 ?b . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q20667921 } GROUP BY ?b } . FILTER ( ?n > ?q ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { ?w rdf:type ontology:Q1048835 . resource:Q3391867 property:P1376 ?w } } }
Guadalupe District
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action count
action filter_type
action find
entity Guadalupe District
relation capital of
type political territorial entity
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:capital_of ?b . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:type_of_french_administrative_division } GROUP BY ?b } . FILTER ( ?n > ?q ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { ?w rdf:type ontology:political_territorial_entity . resource:Guadalupe_District property:capital_of ?w } } }
[]
political territorial entity type of french administrative division
Q34617 Q2485101 Q778266
SYSTEM
Saint Pierre and Miquelon, County of Chiny, County of Artois
Q1122980 Q2485101 Q34617 Q642314 Q1232887 Q778266
(c(Q20667921),P1376,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action count
action filter_type
action find
entity Q3391867
relation P1376
type Q1048835
[ANSWERS] have more number of french administrative divisions as their capital than Guadalupe District
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:P1376 ?b . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q20667921 } GROUP BY ?b } . FILTER ( ?n > ?q ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { ?w rdf:type ontology:Q1048835 . resource:Q3391867 property:P1376 ?w } } }
Comtat Venaissin County of Chiny Saint Pierre and Miquelon County of Burgundy County of Savoy County of Artois
Saint Pierre and Miquelon, County of Chiny and County of Artois have more number of french administrative divisions as their capital than Guadalupe District
Saint Pierre and Miquelon County of Chiny County of Artois
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action count
action filter_type
action find
entity Guadalupe District
relation capital of
type political territorial entity
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:capital_of ?b . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:type_of_french_administrative_division } GROUP BY ?b } . FILTER ( ?n > ?q ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { ?w rdf:type ontology:political_territorial_entity . resource:Guadalupe_District property:capital_of ?w } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q20667921 Q7946 Q43229
USER
Which french administrative divisions are max number of minerals and organizations named after ?
(c(Q7946)|c(Q43229),P138,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q7946
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q43229
[[{'concept': 'Q7946'}, {'concept': 'Q43229'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:Q43229 ) ( ontology:Q7946 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?h ) WHERE { { ?z rdf:type ontology:Q20667921 . ?s rdf:type ontology:Q7946 . ?s property:P138 ?z } UNION { ?s rdf:type ontology:Q43229 . ?z rdf:type ontology:Q20667921 . ?s property:P138 ?z } } GROUP BY ?z } . FILTER ( ?h = ?d ) }
action argmax
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type mineral
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type organization
[[{'concept': 'mineral'}, {'concept': 'organization'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:organization ) ( ontology:mineral ) } } GROUP BY ?j } } . { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?h ) WHERE { { ?z rdf:type ontology:type_of_french_administrative_division . ?s rdf:type ontology:mineral . ?s property:named_after ?z } UNION { ?s rdf:type ontology:organization . ?z rdf:type ontology:type_of_french_administrative_division . ?s property:named_after ?z } } GROUP BY ?z } . FILTER ( ?h = ?d ) }
[]
type of french administrative division mineral organization
Q3241770 Q46135 Q947091
SYSTEM
Lion, Créteil, Romanèche-Thorins
Q3241770 Q46135 Q947091
(c(Q7946)|c(Q43229),P138,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q7946
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q43229
[ANSWERS] are max number of minerals and organizations named after
[[{'concept': 'Q7946'}, {'concept': 'Q43229'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:Q43229 ) ( ontology:Q7946 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?h ) WHERE { { ?z rdf:type ontology:Q20667921 . ?s rdf:type ontology:Q7946 . ?s property:P138 ?z } UNION { ?s rdf:type ontology:Q43229 . ?z rdf:type ontology:Q20667921 . ?s property:P138 ?z } } GROUP BY ?z } . FILTER ( ?h = ?d ) }
Lion Créteil Romanèche-Thorins
Lion, Créteil and Romanèche-Thorins are max number of minerals and organizations named after
Lion Créteil Romanèche-Thorins
action argmax
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type mineral
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type organization
[[{'concept': 'mineral'}, {'concept': 'organization'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:organization ) ( ontology:mineral ) } } GROUP BY ?j } } . { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?h ) WHERE { { ?z rdf:type ontology:type_of_french_administrative_division . ?s rdf:type ontology:mineral . ?s property:named_after ?z } UNION { ?s rdf:type ontology:organization . ?z rdf:type ontology:type_of_french_administrative_division . ?s property:named_after ?z } } GROUP BY ?z } . FILTER ( ?h = ?d ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q12193
P190
Q56061 Q515
USER
How many administrative territories and cities are partner towns of Brest ?
(Q12193,P190,c(Q56061)) (Q12193,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q12193
relation P190
type Q56061
action filter_type
action find
entity Q12193
relation P190
type Q515
['Q12193', 'P190', {'concept': 'Q56061'}] ['Q12193', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?j rdf:type ?q }
Brest
action count
action union
action filter_type
action find
entity Brest
relation sister city
type administrative territorial entity
action filter_type
action find
entity Brest
relation sister city
type city
['Brest', 'sister city', {'concept': 'administrative territorial entity'}] ['Brest', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?j rdf:type ?q }
[]
administrative territorial entity city
SYSTEM
10 administrative territories and 1 cities
Q43382 Q140147 Q745989 Q15682 Q7421008 Q13498 Q41183 Q1707 Q16554 Q40191 Q42622
(Q12193,P190,c(Q56061)) (Q12193,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q12193
relation P190
type Q56061
action filter_type
action find
entity Q12193
relation P190
type Q515
[ANSWER]
['Q12193', 'P190', {'concept': 'Q56061'}] ['Q12193', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?j rdf:type ?q }
Plymouth Brest Dún Laoghaire Cádiz Saponé Taranto Aleppo Kiel Denver Hobart Suzhou
10 administrative territories and 1 cities
action count
action union
action filter_type
action find
entity Brest
relation sister city
type administrative territorial entity
action filter_type
action find
entity Brest
relation sister city
type city
['Brest', 'sister city', {'concept': 'administrative territorial entity'}] ['Brest', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?j rdf:type ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1048412
P166
Q618779
USER
Which award was Champneuville awarded with ?
(Q1048412,P166,c(Q618779))
action filter_type
action find
entity Q1048412
relation P166
type Q618779
['Q1048412', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { resource:Q1048412 property:P166 ?u . ?u rdf:type ontology:Q618779 }
Champneuville
action filter_type
action find
entity Champneuville
relation award received
type award
['Champneuville', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { resource:Champneuville property:award_received ?u . ?u rdf:type ontology:award }
[]
award
Q2727598
SYSTEM
Croix de guerre 1914–1918
Q2727598
(Q1048412,P166,c(Q618779))
action filter_type
action find
entity Q1048412
relation P166
type Q618779
Champneuville was awarded the [ANSWER]
['Q1048412', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { resource:Q1048412 property:P166 ?u . ?u rdf:type ontology:Q618779 }
Croix de guerre 1914–1918
Champneuville was awarded the Croix de guerre 1914–1918
Croix de guerre 1914–1918
action filter_type
action find
entity Champneuville
relation award received
type award
['Champneuville', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { resource:Champneuville property:award_received ?u . ?u rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2727598 Q5799331
P166
Q502895
USER
Was Dardo Pérez Guilhou awarded with that award ?
(Q5799331,P166,Q2727598)
action is_in
entity Q5799331
action find
entity Q2727598
relation P166
['Q5799331', 'P166', 'Q2727598']
ASK WHERE { resource:Q2727598 property:P166 resource:Q5799331 }
Croix de guerre 1914–1918 Dardo Pérez Guilhou
action is_in
entity Dardo Pérez Guilhou
action find
entity Croix de guerre 1914–1918
relation award received
['Dardo Pérez Guilhou', 'award received', 'Croix de guerre 1914–1918']
ASK WHERE { resource:Croix_de_guerre_1914–1918 property:award_received resource:Dardo_Pérez_Guilhou }
[]
common name
SYSTEM
NO
(Q5799331,P166,Q2727598)
action is_in
entity Q5799331
action find
entity Q2727598
relation P166
[ANSWER]
['Q5799331', 'P166', 'Q2727598']
ASK WHERE { resource:Q2727598 property:P166 resource:Q5799331 }
No
action is_in
entity Dardo Pérez Guilhou
action find
entity Croix de guerre 1914–1918
relation award received
['Dardo Pérez Guilhou', 'award received', 'Croix de guerre 1914–1918']
ASK WHERE { resource:Croix_de_guerre_1914–1918 property:award_received resource:Dardo_Pérez_Guilhou }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2485101 Q229792
P36
Q20667921
USER
Is Montmédy called the capital of that political territory ?
(Q2485101,P36,Q229792)
action is_in
entity Q229792
action find
entity Q2485101
relation P36
['Q2485101', 'P36', 'Q229792']
ASK WHERE { resource:Q2485101 property:P36 resource:Q229792 }
County of Chiny Montmédy
action is_in
entity Montmédy
action find
entity County of Chiny
relation capital
['County of Chiny', 'capital', 'Montmédy']
ASK WHERE { resource:County_of_Chiny property:capital resource:Montmédy }
[]
type of french administrative division
SYSTEM
YES
(Q2485101,P36,Q229792)
action is_in
entity Q229792
action find
entity Q2485101
relation P36
[ANSWER]
['Q2485101', 'P36', 'Q229792']
ASK WHERE { resource:Q2485101 property:P36 resource:Q229792 }
Yes
action is_in
entity Montmédy
action find
entity County of Chiny
relation capital
['County of Chiny', 'capital', 'Montmédy']
ASK WHERE { resource:County_of_Chiny property:capital resource:Montmédy }
[]