Simple Question (Direct)
Simple Question
Q21571740
P641
Q31629
USER
Which type of sport did 2016 Four Days of Dunkirk, Stage 5 participate in ?
(Q21571740,P641,c(Q31629))
action filter_type
action find
entity Q21571740
relation P641
type Q31629
['Q21571740', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?a WHERE { resource:Q21571740 property:P641 ?a . ?a rdf:type ontology:Q31629 }
2016 Four Days of Dunkirk, Stage 5
action filter_type
action find
entity 2016 Four Days of Dunkirk, Stage 5
relation sport
type type of sport
['2016 Four Days of Dunkirk, Stage 5', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?a WHERE { resource:2016_Four_Days_of_Dunkirk,_Stage_5 property:sport ?a . ?a rdf:type ontology:type_of_sport }
[]
type of sport
Q3609
SYSTEM
road bicycle racing
Q3609
(Q21571740,P641,c(Q31629))
action filter_type
action find
entity Q21571740
relation P641
type Q31629
[ANSWER] 2016 Four Days of Dunkirk, Stage 5 participated in
['Q21571740', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?a WHERE { resource:Q21571740 property:P641 ?a . ?a rdf:type ontology:Q31629 }
road bicycle racing
Road bicycle racing 2016 Four Days of Dunkirk, Stage 5 participated in
road bicycle racing
action filter_type
action find
entity 2016 Four Days of Dunkirk, Stage 5
relation sport
type type of sport
['2016 Four Days of Dunkirk, Stage 5', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?a WHERE { resource:2016_Four_Days_of_Dunkirk,_Stage_5 property:sport ?a . ?a rdf:type ontology:type_of_sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q2921875
P1444
Q79007 Q31629
USER
Which streets are the destination points for around the same number of types of sport as boulevard Macdonald ?
(c(Q31629),P1444,c(Q79007))
action approx
action find_reverse_tuple_counts
relation P1444
type Q79007
type Q31629
action count
action filter_type
action find
entity Q2921875
relation P1444
type Q79007
[{'concept': 'Q31629'}, 'P1444', {'concept': 'Q79007'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { ?i rdf:type ontology:Q79007 . ?f rdf:type ontology:Q31629 . ?f property:P1444 ?i } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Q2921875 property:P1444 ?p . ?p rdf:type ontology:Q79007 } } . FILTER ( ?x = ?u ) }
boulevard Macdonald
action approx
action find_reverse_tuple_counts
relation destination point
type street
type type of sport
action count
action filter_type
action find
entity boulevard Macdonald
relation destination point
type street
[{'concept': 'type of sport'}, 'destination point', {'concept': 'street'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { ?i rdf:type ontology:street . ?f rdf:type ontology:type_of_sport . ?f property:destination_point ?i } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:boulevard_Macdonald property:destination_point ?p . ?p rdf:type ontology:street } } . FILTER ( ?x = ?u ) }
[]
street type of sport
Q533037 Q2921942 Q2921792
SYSTEM
boulevard Saint-Germain, boulevard Sérurier, boulevard Brune
Q2921783 Q2921850 Q2921792 Q2921892 Q2921875 Q2921809 Q2921958 Q533037 Q2921942 Q934198 Q2921782
(c(Q31629),P1444,c(Q79007))
action approx
action find_reverse_tuple_counts
relation P1444
type Q79007
type Q31629
action count
action filter_type
action find
entity Q2921875
relation P1444
type Q79007
[ANSWERS] are the destination points for around the same number of types of sport as boulevard Macdonald
[{'concept': 'Q31629'}, 'P1444', {'concept': 'Q79007'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { ?i rdf:type ontology:Q79007 . ?f rdf:type ontology:Q31629 . ?f property:P1444 ?i } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Q2921875 property:P1444 ?p . ?p rdf:type ontology:Q79007 } } . FILTER ( ?x = ?u ) }
boulevard Bessières boulevard Jourdan boulevard Brune boulevard Ney boulevard Macdonald boulevard Davout boulevard Victor boulevard Saint-Germain boulevard Sérurier boulevard Lefebvre boulevard Berthier
Boulevard Saint-Germain, boulevard Sérurier and boulevard Brune are the destination points for around the same number of types of sport as boulevard Macdonald
boulevard Saint-Germain boulevard Sérurier boulevard Brune
action approx
action find_reverse_tuple_counts
relation destination point
type street
type type of sport
action count
action filter_type
action find
entity boulevard Macdonald
relation destination point
type street
[{'concept': 'type of sport'}, 'destination point', {'concept': 'street'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { ?i rdf:type ontology:street . ?f rdf:type ontology:type_of_sport . ?f property:destination_point ?i } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:boulevard_Macdonald property:destination_point ?p . ?p rdf:type ontology:street } } . FILTER ( ?x = ?u ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q533037
P47
Q34442
USER
Which roads share border with boulevard Saint-Germain ?
(Q533037,P47,c(Q34442))
action filter_type
action find
entity Q533037
relation P47
type Q34442
['Q533037', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ?s WHERE { resource:Q533037 property:P47 ?s . ?s rdf:type ontology:Q34442 }
boulevard Saint-Germain
action filter_type
action find
entity boulevard Saint-Germain
relation shares border with
type road
['boulevard Saint-Germain', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ?s WHERE { resource:boulevard_Saint-Germain property:shares_border_with ?s . ?s rdf:type ontology:road }
[]
road
Q3451302 Q3449203 Q3449863
SYSTEM
rue de l'Université, rue Monge, rue Saint-Dominique
Q1496833 Q3450964 Q3451199 Q3451006 Q3451638 Q3447609 Q3451751 Q3451673 Q2384721 Q3451307 Q3451302 Q3449887 Q3450843 Q3452035 Q3449863 Q3450156 Q3449173 Q3447231 Q3449843 Q3449976 Q3447194 Q3450974 Q1470209 Q3451056 Q3451134 Q3448191 Q1356926 Q3450692 Q3452159 Q3451820 Q3449203 Q3448177 Q3450813 Q3447610 Q3448270 Q3452313 Q3450565 Q3450610 Q3450898 Q3451725 Q3450675 Q3451031 Q3450587 Q3448527 Q3446982 Q3452290
(Q533037,P47,c(Q34442))
action filter_type
action find
entity Q533037
relation P47
type Q34442
[ANSWERS] share border with boulevard Saint-Germain
['Q533037', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ?s WHERE { resource:Q533037 property:P47 ?s . ?s rdf:type ontology:Q34442 }
rue de la Harpe rue de Poissy rue de l'Ancienne-Comédie rue de Rennes rue des Anglais rue Dante rue des Ciseaux rue des Bernardins rue de Seine rue de l'Échaudé rue de l'Université rue Saint-Guillaume rue de Luynes rue des Saints-Pères rue Saint-Dominique rue Thénard rue Mignon rue Boutebrie rue Saint-Benoît rue Saint-Thomas-d'Aquin rue Bonaparte rue de Pontoise rue du Bac rue de Solférino rue de Villersexel rue Grégoire-de-Tours Rue Saint-Jacques, Paris rue de Courty rue du Cardinal-Lemoine rue des Fossés-Saint-Bernard rue Monge rue Gozlin rue de Lille rue Danton rue Hautefeuille rue du Four rue de Bellechasse rue de Buci rue de Montfaucon rue des Carmes rue de Cluny rue de Saint-Simon rue de Bièvre rue Jean-de-Beauvais rue Aristide-Briand rue du Dragon
Rue de l'Université, rue Monge and rue Saint-Dominique share border with boulevard Saint-Germain
rue de l'Université rue Monge rue Saint-Dominique
action filter_type
action find
entity boulevard Saint-Germain
relation shares border with
type road
['boulevard Saint-Germain', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ?s WHERE { resource:boulevard_Saint-Germain property:shares_border_with ?s . ?s rdf:type ontology:road }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3451357
Q34442
USER
And also tell me about rue de la Bûcherie?
(Q3451357,P47,c(Q34442))
action filter_type
action find
entity Q3451357
relation P47
type Q34442
['Q3451357', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q34442 . resource:Q3451357 property:P47 ?r }
rue de la Bûcherie
action filter_type
action find
entity rue de la Bûcherie
relation shares border with
type road
['rue de la Bûcherie', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:road . resource:rue_de_la_Bûcherie property:shares_border_with ?r }
[]
road
Q3448723 Q3448021 Q3451843
SYSTEM
rue Lagrange, rue Frédéric-Sauton, rue des Grands-Degrés
Q3449911 Q3451843 Q3452379 Q3451264 Q3448723 Q3448021
(Q3451357,P47,c(Q34442))
action filter_type
action find
entity Q3451357
relation P47
type Q34442
[ANSWERS]
['Q3451357', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q34442 . resource:Q3451357 property:P47 ?r }
rue Saint-Julien-le-Pauvre rue des Grands-Degrés rue du Haut-Pavé rue de l'Hôtel-Colbert rue Lagrange rue Frédéric-Sauton
rue Lagrange rue Frédéric-Sauton rue des Grands-Degrés
action filter_type
action find
entity rue de la Bûcherie
relation shares border with
type road
['rue de la Bûcherie', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:road . resource:rue_de_la_Bûcherie property:shares_border_with ?r }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3451357
P47
Q34442
USER
Does rue de la Bûcherie share border with those ones ?
(Q3451357,P47,Q3448723) (Q3451357,P47,Q3448021) (Q3451357,P47,Q3451843)
action is_in
entity prev_answer
action find
entity Q3451357
relation P47
['Q3451357', 'P47', 'Q3448723'] ['Q3451357', 'P47', 'Q3448021'] ['Q3451357', 'P47', 'Q3451843']
ASK WHERE { resource:Q3451357 property:P47 ?h . VALUES ( ?h ) { ( resource:Q3449911 ) ( resource:Q3451843 ) ( resource:Q3452379 ) } }
rue de la Bûcherie
action is_in
entity prev_answer
action find
entity rue de la Bûcherie
relation shares border with
['rue de la Bûcherie', 'shares border with', 'rue Lagrange'] ['rue de la Bûcherie', 'shares border with', 'rue Frédéric-Sauton'] ['rue de la Bûcherie', 'shares border with', 'rue des Grands-Degrés']
ASK WHERE { resource:rue_de_la_Bûcherie property:shares_border_with ?h . VALUES ( ?h ) { ( resource:rue_Saint-Julien-le-Pauvre ) ( resource:rue_des_Grands-Degrés ) ( resource:rue_du_Haut-Pavé ) } }
[]
road
SYSTEM
YES
(Q3451357,P47,Q3448723) (Q3451357,P47,Q3448021) (Q3451357,P47,Q3451843)
action is_in
entity prev_answer
action find
entity Q3451357
relation P47
[ANSWER]
['Q3451357', 'P47', 'Q3448723'] ['Q3451357', 'P47', 'Q3448021'] ['Q3451357', 'P47', 'Q3451843']
ASK WHERE { resource:Q3451357 property:P47 ?h . VALUES ( ?h ) { ( resource:Q3449911 ) ( resource:Q3451843 ) ( resource:Q3452379 ) } }
Yes
action is_in
entity prev_answer
action find
entity rue de la Bûcherie
relation shares border with
['rue de la Bûcherie', 'shares border with', 'rue Lagrange'] ['rue de la Bûcherie', 'shares border with', 'rue Frédéric-Sauton'] ['rue de la Bûcherie', 'shares border with', 'rue des Grands-Degrés']
ASK WHERE { resource:rue_de_la_Bûcherie property:shares_border_with ?h . VALUES ( ?h ) { ( resource:rue_Saint-Julien-le-Pauvre ) ( resource:rue_des_Grands-Degrés ) ( resource:rue_du_Haut-Pavé ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3451302
P47
Q34442
USER
How many roads have a shared border with rue de l'Université ?
(Q3451302,P47,c(Q34442))
action count
action filter_type
action find
entity Q3451302
relation P47
type Q34442
['Q3451302', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:Q3451302 property:P47 ?t . ?t rdf:type ontology:Q34442 }
rue de l'Université
action count
action filter_type
action find
entity rue de l'Université
relation shares border with
type road
["rue de l'Université", 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:rue_de_l'Université property:shares_border_with ?t . ?t rdf:type ontology:road }
[]
road
SYSTEM
19
Q3448085 Q3450963 Q3450684 Q3451056 Q3448385 Q3447864 Q3452035 Q3449011 Q1470209 Q3451134 Q3447672 Q3450692 Q3448497 Q3450565 Q3450562 Q3452541 Q3449737 Q3446982 Q3450104
(Q3451302,P47,c(Q34442))
action count
action filter_type
action find
entity Q3451302
relation P47
type Q34442
[ANSWER]
['Q3451302', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:Q3451302 property:P47 ?t . ?t rdf:type ontology:Q34442 }
rue Gaston-Gallimard rue de Poitiers rue de Constantine rue de Solférino rue Jacob rue Fabert rue des Saints-Pères rue Malar rue du Bac rue de Villersexel rue Desgenettes rue de Courty rue Jean-Nicot rue de Bellechasse rue de Beaune rue du Pré-aux-Clercs rue Robert-Esnault-Pelterie rue Aristide-Briand rue Surcouf
19
action count
action filter_type
action find
entity rue de l'Université
relation shares border with
type road
["rue de l'Université", 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:rue_de_l'Université property:shares_border_with ?t . ?t rdf:type ontology:road }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3448723
P17
Q15617994
USER
Which administrative territory is rue Lagrange present in ?
(Q3448723,P17,c(Q15617994))
action filter_type
action find
entity Q3448723
relation P17
type Q15617994
['Q3448723', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q3448723 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
rue Lagrange
action filter_type
action find
entity rue Lagrange
relation country
type designation for an administrative territorial entity
['rue Lagrange', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:rue_Lagrange property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3448723,P17,c(Q15617994))
action filter_type
action find
entity Q3448723
relation P17
type Q15617994
Rue Lagrange is in [ANSWER]
['Q3448723', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q3448723 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
France
Rue Lagrange is in France
France
action filter_type
action find
entity rue Lagrange
relation country
type designation for an administrative territorial entity
['rue Lagrange', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:rue_Lagrange property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3448723
P138
Q502895
USER
Which person is namesake of rue Lagrange ?
(Q3448723,P138,c(Q502895))
action filter_type
action find
entity Q3448723
relation P138
type Q502895
['Q3448723', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q3448723 property:P138 ?r . ?r rdf:type ontology:Q502895 }
rue Lagrange
action filter_type
action find
entity rue Lagrange
relation named after
type common name
['rue Lagrange', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:rue_Lagrange property:named_after ?r . ?r rdf:type ontology:common_name }
[]
common name
Q80222
SYSTEM
Joseph-Louis Lagrange
Q80222
(Q3448723,P138,c(Q502895))
action filter_type
action find
entity Q3448723
relation P138
type Q502895
Lagrange [ANSWER] is namesake of rue Lagrange
['Q3448723', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q3448723 property:P138 ?r . ?r rdf:type ontology:Q502895 }
Joseph-Louis Lagrange
Lagrange Joseph-Louis Lagrange is namesake of rue Lagrange
Joseph-Louis Lagrange
action filter_type
action find
entity rue Lagrange
relation named after
type common name
['rue Lagrange', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:rue_Lagrange property:named_after ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3448723
P159
Q43229
USER
Which organization has headquarters located at rue Lagrange ?
(c(Q43229),P159,Q3448723)
action filter_type
action find_reverse
entity Q3448723
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q3448723']
SELECT DISTINCT ?f WHERE { ?f property:P159 resource:Q3448723 . ?f rdf:type ontology:Q43229 }
rue Lagrange
action filter_type
action find_reverse
entity rue Lagrange
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'rue Lagrange']
SELECT DISTINCT ?f WHERE { ?f property:headquarters_location resource:rue_Lagrange . ?f rdf:type ontology:organization }
[]
organization
Q3230725
SYSTEM
The Planetworkshops
Q3230725
(c(Q43229),P159,Q3448723)
action filter_type
action find_reverse
entity Q3448723
relation P159
type Q43229
[ANSWER] has headquarters located at rue Lagrange
[{'concept': 'Q43229'}, 'P159', 'Q3448723']
SELECT DISTINCT ?f WHERE { ?f property:P159 resource:Q3448723 . ?f rdf:type ontology:Q43229 }
The Planetworkshops
The Planetworkshops has headquarters located at rue Lagrange
The Planetworkshops
action filter_type
action find_reverse
entity rue Lagrange
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'rue Lagrange']
SELECT DISTINCT ?f WHERE { ?f property:headquarters_location resource:rue_Lagrange . ?f rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q142 Q3448723
P159 P17
Q43229
USER
Which organizations have headquarters located at rue Lagrange and are situated in France ?
AND((c(Q43229),P159,Q3448723), (c(Q43229),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q3448723
relation P159
action find_reverse
entity Q142
relation P17
type Q43229
{'AND': [[{'concept': 'Q43229'}, 'P159', 'Q3448723'], [{'concept': 'Q43229'}, 'P17', 'Q142']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q43229 . ?i property:P159 resource:Q3448723 . ?i property:P17 resource:Q142 }
France rue Lagrange
action filter_type
action intersection
action find_reverse
entity rue Lagrange
relation headquarters location
action find_reverse
entity France
relation country
type organization
{'AND': [[{'concept': 'organization'}, 'headquarters location', 'rue Lagrange'], [{'concept': 'organization'}, 'country', 'France']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:organization . ?i property:headquarters_location resource:rue_Lagrange . ?i property:country resource:France }
[]
organization
Q3230725
SYSTEM
The Planetworkshops
Q3230725
AND((c(Q43229),P159,Q3448723), (c(Q43229),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q3448723
relation P159
action find_reverse
entity Q142
relation P17
type Q43229
[ANSWER] have headquarters located at rue Lagrange and are situated in France
{'AND': [[{'concept': 'Q43229'}, 'P159', 'Q3448723'], [{'concept': 'Q43229'}, 'P17', 'Q142']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q43229 . ?i property:P159 resource:Q3448723 . ?i property:P17 resource:Q142 }
The Planetworkshops
The Planetworkshops have headquarters located at rue Lagrange and are situated in France
The Planetworkshops
action filter_type
action intersection
action find_reverse
entity rue Lagrange
relation headquarters location
action find_reverse
entity France
relation country
type organization
{'AND': [[{'concept': 'organization'}, 'headquarters location', 'rue Lagrange'], [{'concept': 'organization'}, 'country', 'France']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:organization . ?i property:headquarters_location resource:rue_Lagrange . ?i property:country resource:France }
[]