Simple Question (Direct)
Simple Question
Q2420913
P21
Q290
USER
Which sex does Guillaume Perrin have ?
(Q2420913,P21,c(Q290))
action filter_type
action find
entity Q2420913
relation P21
type Q290
['Q2420913', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q2420913 property:P21 ?q }
Guillaume Perrin
action filter_type
action find
entity Guillaume Perrin
relation gender
type sex
['Guillaume Perrin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Guillaume_Perrin property:gender ?q }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2420913,P21,c(Q290))
action filter_type
action find
entity Q2420913
relation P21
type Q290
Guillaume Perrin has a [ANSWER]
['Q2420913', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q2420913 property:P21 ?q }
male
Guillaume Perrin has a male
male
action filter_type
action find
entity Guillaume Perrin
relation gender
type sex
['Guillaume Perrin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Guillaume_Perrin property:gender ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2420913
P20
Q56061
USER
Where did the expiration of that person occur ?
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q2420913
relation P20
type Q56061
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q2420913 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Guillaume Perrin
action filter_type
action find
entity Guillaume Perrin
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Guillaume_Perrin property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1479
SYSTEM
Bordeaux
Q1479
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q2420913
relation P20
type Q56061
The expiration of that person occurred in [ANSWER]
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q2420913 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Bordeaux
The expiration of that person occurred in Bordeaux
Bordeaux
action filter_type
action find
entity Guillaume Perrin
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Guillaume_Perrin property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1479
P6
Q502895
USER
Which people do that administrative territory serve as the head of government for ?
(Q1479,P6,c(Q502895))
action filter_type
action find
entity Q1479
relation P6
type Q502895
['Q1479', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q1479 property:P6 ?u . ?u rdf:type ontology:Q502895 }
Bordeaux
action filter_type
action find
entity Bordeaux
relation head of government
type common name
['Bordeaux', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Bordeaux property:head_of_government ?u . ?u rdf:type ontology:common_name }
[]
common name
Q215569 Q3142646 Q12940
SYSTEM
Alain Juppé, Hugues Martin, Jacques Chaban-Delmas
Q215569 Q3142646 Q12940
(Q1479,P6,c(Q502895))
action filter_type
action find
entity Q1479
relation P6
type Q502895
[ANSWERS] that administrative territory serve as the head of government for
['Q1479', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q1479 property:P6 ?u . ?u rdf:type ontology:Q502895 }
Alain Juppé Hugues Martin Jacques Chaban-Delmas
Alain Juppé, Hugues Martin and Jacques Chaban-Delmas that administrative territory serve as the head of government for
Alain Juppé Hugues Martin Jacques Chaban-Delmas
action filter_type
action find
entity Bordeaux
relation head of government
type common name
['Bordeaux', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Bordeaux property:head_of_government ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1479
P119
Q502895
USER
Who has Bordeaux as his/her tomb ?
(c(Q502895),P119,Q1479)
action filter_type
action find_reverse
entity Q1479
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q1479']
SELECT DISTINCT ?n WHERE { ?n property:P119 resource:Q1479 . ?n rdf:type ontology:Q502895 }
Bordeaux
action filter_type
action find_reverse
entity Bordeaux
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Bordeaux']
SELECT DISTINCT ?n WHERE { ?n property:place_of_burial resource:Bordeaux . ?n rdf:type ontology:common_name }
[]
common name
Q840422
SYSTEM
Gaston II de Foix, Count of Candale
Q840422
(c(Q502895),P119,Q1479)
action filter_type
action find_reverse
entity Q1479
relation P119
type Q502895
[ANSWER] has Bordeaux as his/her tomb
[{'concept': 'Q502895'}, 'P119', 'Q1479']
SELECT DISTINCT ?n WHERE { ?n property:P119 resource:Q1479 . ?n rdf:type ontology:Q502895 }
Gaston II de Foix, Count of Candale
Gaston II de Foix, Count of Candale has Bordeaux as his/her tomb
Gaston II de Foix, Count of Candale
action filter_type
action find_reverse
entity Bordeaux
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Bordeaux']
SELECT DISTINCT ?n WHERE { ?n property:place_of_burial resource:Bordeaux . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1479
P47
Q20667921
USER
Which french administrative divisions are adjacent to Bordeaux ?
(Q1479,P47,c(Q20667921))
action filter_type
action find
entity Q1479
relation P47
type Q20667921
['Q1479', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q20667921 . resource:Q1479 property:P47 ?u }
Bordeaux
action filter_type
action find
entity Bordeaux
relation shares border with
type type of french administrative division
['Bordeaux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:type_of_french_administrative_division . resource:Bordeaux property:shares_border_with ?u }
[]
type of french administrative division
Q205551 Q192438 Q207156
SYSTEM
Mérignac, Bègles, Pessac
Q192461 Q205551 Q1053472 Q327025 Q192438 Q192481 Q220592 Q467370 Q199682 Q243682 Q235300 Q207156
(Q1479,P47,c(Q20667921))
action filter_type
action find
entity Q1479
relation P47
type Q20667921
[ANSWERS] are adjacent to Bordeaux
['Q1479', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q20667921 . resource:Q1479 property:P47 ?u }
Le Bouscat Mérignac Cenon Bruges Bègles Talence Blanquefort Eysines Floirac Bassens Lormont Pessac
Mérignac, Bègles and Pessac are adjacent to Bordeaux
Mérignac Bègles Pessac
action filter_type
action find
entity Bordeaux
relation shares border with
type type of french administrative division
['Bordeaux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:type_of_french_administrative_division . resource:Bordeaux property:shares_border_with ?u }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1143476
Q20667921
USER
And also tell me about Sorbets?
(Q1143476,P47,c(Q20667921))
action filter_type
action find
entity Q1143476
relation P47
type Q20667921
['Q1143476', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q1143476 property:P47 ?m . ?m rdf:type ontology:Q20667921 }
Sorbets
action filter_type
action find
entity Sorbets
relation shares border with
type type of french administrative division
['Sorbets', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Sorbets property:shares_border_with ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q778619 Q997276 Q1244973
SYSTEM
Arblade-le-Haut, Bouzon-Gellenave, Termes-d'Armagnac
Q339533 Q1004758 Q1006831 Q1004024 Q997276 Q741039 Q1244973 Q778619 Q1005762
(Q1143476,P47,c(Q20667921))
action filter_type
action find
entity Q1143476
relation P47
type Q20667921
[ANSWERS]
['Q1143476', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q1143476 property:P47 ?m . ?m rdf:type ontology:Q20667921 }
Sion Sarragachies Fustérouau Urgosse Bouzon-Gellenave Bétous Termes-d'Armagnac Arblade-le-Haut Saint-Martin-d'Armagnac
Arblade-le-Haut Bouzon-Gellenave Termes-d'Armagnac
action filter_type
action find
entity Sorbets
relation shares border with
type type of french administrative division
['Sorbets', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Sorbets property:shares_border_with ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1143476
P47
Q20667921
USER
Do Sorbets have an adjacent border with those ones ?
(Q1143476,P47,Q778619) (Q1143476,P47,Q997276) (Q1143476,P47,Q1244973)
action is_in
entity prev_answer
action find
entity Q1143476
relation P47
['Q1143476', 'P47', 'Q778619'] ['Q1143476', 'P47', 'Q997276'] ['Q1143476', 'P47', 'Q1244973']
ASK WHERE { VALUES ( ?c ) { ( resource:Q339533 ) ( resource:Q1004758 ) ( resource:Q1006831 ) } . resource:Q1143476 property:P47 ?c }
Sorbets
action is_in
entity prev_answer
action find
entity Sorbets
relation shares border with
['Sorbets', 'shares border with', 'Arblade-le-Haut'] ['Sorbets', 'shares border with', 'Bouzon-Gellenave'] ['Sorbets', 'shares border with', "Termes-d'Armagnac"]
ASK WHERE { VALUES ( ?c ) { ( resource:Sion ) ( resource:Sarragachies ) ( resource:Fustérouau ) } . resource:Sorbets property:shares_border_with ?c }
[]
type of french administrative division
SYSTEM
YES
(Q1143476,P47,Q778619) (Q1143476,P47,Q997276) (Q1143476,P47,Q1244973)
action is_in
entity prev_answer
action find
entity Q1143476
relation P47
[ANSWER]
['Q1143476', 'P47', 'Q778619'] ['Q1143476', 'P47', 'Q997276'] ['Q1143476', 'P47', 'Q1244973']
ASK WHERE { VALUES ( ?c ) { ( resource:Q339533 ) ( resource:Q1004758 ) ( resource:Q1006831 ) } . resource:Q1143476 property:P47 ?c }
Yes
action is_in
entity prev_answer
action find
entity Sorbets
relation shares border with
['Sorbets', 'shares border with', 'Arblade-le-Haut'] ['Sorbets', 'shares border with', 'Bouzon-Gellenave'] ['Sorbets', 'shares border with', "Termes-d'Armagnac"]
ASK WHERE { VALUES ( ?c ) { ( resource:Sion ) ( resource:Sarragachies ) ( resource:Fustérouau ) } . resource:Sorbets property:shares_border_with ?c }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q22380
P138
Q20667921 Q618779 Q1048835
USER
Which french administrative divisions are less number of awards or political territories named after than Créhange ?
(c(Q618779)|c(Q1048835),P138,c(Q20667921))
action less
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q618779
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q22380
relation P138
type Q618779
type Q1048835
[[{'concept': 'Q618779'}, {'concept': 'Q1048835'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?i ) WHERE { VALUES ( ?y ) { ( ontology:Q618779 ) ( ontology:Q1048835 ) } . ?d rdf:type ?y } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f property:P138 resource:Q22380 . { ?f rdf:type ?k . VALUES ( ?k ) { ( ontology:Q618779 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?i < ?j ) }
Créhange
action less
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type award
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Créhange
relation named after
type award
type political territorial entity
[[{'concept': 'award'}, {'concept': 'political territorial entity'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?i ) WHERE { VALUES ( ?y ) { ( ontology:award ) ( ontology:political_territorial_entity ) } . ?d rdf:type ?y } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f property:named_after resource:Créhange . { ?f rdf:type ?k . VALUES ( ?k ) { ( ontology:award ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?i < ?j ) }
[]
type of french administrative division award 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 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 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(Q618779)|c(Q1048835),P138,c(Q20667921))
action less
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q618779
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q22380
relation P138
type Q618779
type Q1048835
[ANSWERS] are less number of awards or political territories named after than Créhange
[[{'concept': 'Q618779'}, {'concept': 'Q1048835'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?i ) WHERE { VALUES ( ?y ) { ( ontology:Q618779 ) ( ontology:Q1048835 ) } . ?d rdf:type ?y } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f property:P138 resource:Q22380 . { ?f rdf:type ?k . VALUES ( ?k ) { ( ontology:Q618779 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?i < ?j ) }
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 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 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 less number of awards or political territories named after than Créhange
Brest Verdun Nîmes
action less
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type award
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Créhange
relation named after
type award
type political territorial entity
[[{'concept': 'award'}, {'concept': 'political territorial entity'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?i ) WHERE { VALUES ( ?y ) { ( ontology:award ) ( ontology:political_territorial_entity ) } . ?d rdf:type ?y } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f property:named_after resource:Créhange . { ?f rdf:type ?k . VALUES ( ?k ) { ( ontology:award ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?i < ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12193
P17
Q15617994
USER
Which administrative territory is Brest situated in ?
(Q12193,P17,c(Q15617994))
action filter_type
action find
entity Q12193
relation P17
type Q15617994
['Q12193', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q12193 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Brest
action filter_type
action find
entity Brest
relation country
type designation for an administrative territorial entity
['Brest', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Brest property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q12193,P17,c(Q15617994))
action filter_type
action find
entity Q12193
relation P17
type Q15617994
Brest is situated in [ANSWER]
['Q12193', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q12193 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
France
Brest is situated in France
France
action filter_type
action find
entity Brest
relation country
type designation for an administrative territorial entity
['Brest', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Brest property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7949260
Q15617994
USER
And what about WFEZ?
(Q7949260,P17,c(Q15617994))
action filter_type
action find
entity Q7949260
relation P17
type Q15617994
['Q7949260', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q7949260 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
WFEZ
action filter_type
action find
entity WFEZ
relation country
type designation for an administrative territorial entity
['WFEZ', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:WFEZ property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7949260,P17,c(Q15617994))
action filter_type
action find
entity Q7949260
relation P17
type Q15617994
[ANSWER]
['Q7949260', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q7949260 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity WFEZ
relation country
type designation for an administrative territorial entity
['WFEZ', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:WFEZ property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?x ) { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?s ) WHERE { ?e property:P530 ?f . ?e rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?v ) WHERE { ?a rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?a property:P530 ?k } GROUP BY ?a } . FILTER ( ?v = ?x ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?x ) { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?s ) WHERE { ?e property:diplomatic_relation ?f . ?e rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?v ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?k } GROUP BY ?a } . FILTER ( ?v = ?x ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] are known to have diplomatic connections with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?x ) { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?s ) WHERE { ?e property:P530 ?f . ?e rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?v ) WHERE { ?a rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?a property:P530 ?k } GROUP BY ?a } . FILTER ( ?v = ?x ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea are known to have diplomatic connections with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?x ) { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?s ) WHERE { ?e property:diplomatic_relation ?f . ?e rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?v ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?k } GROUP BY ?a } . FILTER ( ?v = ?x ) }
[]