Simple Question (Direct)
Simple Question
Q862962
P47
Q20667921
USER
Who share the border with Grancey-sur-Ource ?
(Q862962,P47,c(Q20667921))
action filter_type
action find
entity Q862962
relation P47
type Q20667921
['Q862962', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q862962 property:P47 ?b . ?b rdf:type ontology:Q20667921 }
Grancey-sur-Ource
action filter_type
action find
entity Grancey-sur-Ource
relation shares border with
type type of french administrative division
['Grancey-sur-Ource', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Grancey-sur-Ource property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q474487 Q740144 Q296294
SYSTEM
Essoyes, Mussy-sur-Seine, Charrey-sur-Seine
Q474487 Q740144 Q1436981 Q296294 Q780889 Q1148751
(Q862962,P47,c(Q20667921))
action filter_type
action find
entity Q862962
relation P47
type Q20667921
Of [ANSWERS] share the border with Grancey-sur-Ource
['Q862962', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q862962 property:P47 ?b . ?b rdf:type ontology:Q20667921 }
Essoyes Mussy-sur-Seine Verpillières-sur-Ource Charrey-sur-Seine Autricourt Cunfin
Of Essoyes, Mussy-sur-Seine and Charrey-sur-Seine share the border with Grancey-sur-Ource
Essoyes Mussy-sur-Seine Charrey-sur-Seine
action filter_type
action find
entity Grancey-sur-Ource
relation shares border with
type type of french administrative division
['Grancey-sur-Ource', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Grancey-sur-Ource property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q862962
P47
Q20667921
USER
Do those ones share a border with Grancey-sur-Ource ?
(Q862962,P47,Q474487) (Q862962,P47,Q740144) (Q862962,P47,Q296294)
action is_in
entity prev_answer
action find
entity Q862962
relation P47
['Q862962', 'P47', 'Q474487'] ['Q862962', 'P47', 'Q740144'] ['Q862962', 'P47', 'Q296294']
ASK WHERE { VALUES ( ?c ) { ( resource:Q474487 ) ( resource:Q740144 ) ( resource:Q1436981 ) } . resource:Q862962 property:P47 ?c }
Grancey-sur-Ource
action is_in
entity prev_answer
action find
entity Grancey-sur-Ource
relation shares border with
['Grancey-sur-Ource', 'shares border with', 'Essoyes'] ['Grancey-sur-Ource', 'shares border with', 'Mussy-sur-Seine'] ['Grancey-sur-Ource', 'shares border with', 'Charrey-sur-Seine']
ASK WHERE { VALUES ( ?c ) { ( resource:Essoyes ) ( resource:Mussy-sur-Seine ) ( resource:Verpillières-sur-Ource ) } . resource:Grancey-sur-Ource property:shares_border_with ?c }
[]
type of french administrative division
SYSTEM
YES
(Q862962,P47,Q474487) (Q862962,P47,Q740144) (Q862962,P47,Q296294)
action is_in
entity prev_answer
action find
entity Q862962
relation P47
[ANSWER]
['Q862962', 'P47', 'Q474487'] ['Q862962', 'P47', 'Q740144'] ['Q862962', 'P47', 'Q296294']
ASK WHERE { VALUES ( ?c ) { ( resource:Q474487 ) ( resource:Q740144 ) ( resource:Q1436981 ) } . resource:Q862962 property:P47 ?c }
Yes
action is_in
entity prev_answer
action find
entity Grancey-sur-Ource
relation shares border with
['Grancey-sur-Ource', 'shares border with', 'Essoyes'] ['Grancey-sur-Ource', 'shares border with', 'Mussy-sur-Seine'] ['Grancey-sur-Ource', 'shares border with', 'Charrey-sur-Seine']
ASK WHERE { VALUES ( ?c ) { ( resource:Essoyes ) ( resource:Mussy-sur-Seine ) ( resource:Verpillières-sur-Ource ) } . resource:Grancey-sur-Ource property:shares_border_with ?c }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q740144 Q297473 Q16535681
P47
Q20667921
USER
Does Mussy-sur-Seine have an adjacent border with Gomméville and canton of La Roche-sur-Yon-1 ?
(Q740144,P47,Q297473) (Q740144,P47,Q16535681)
action is_in
entity Q740144
action intersection
action find_reverse
entity Q297473
relation P47
action find_reverse
entity Q16535681
relation P47
['Q740144', 'P47', 'Q297473'] ['Q740144', 'P47', 'Q16535681']
ASK WHERE { resource:Q740144 property:P47 resource:Q297473 . resource:Q740144 property:P47 resource:Q16535681 }
Mussy-sur-Seine Gomméville canton of La Roche-sur-Yon-1
action is_in
entity Mussy-sur-Seine
action intersection
action find_reverse
entity Gomméville
relation shares border with
action find_reverse
entity canton of La Roche-sur-Yon-1
relation shares border with
['Mussy-sur-Seine', 'shares border with', 'Gomméville'] ['Mussy-sur-Seine', 'shares border with', 'canton of La Roche-sur-Yon-1']
ASK WHERE { resource:Mussy-sur-Seine property:shares_border_with resource:Gomméville . resource:Mussy-sur-Seine property:shares_border_with resource:canton_of_La_Roche-sur-Yon-1 }
[]
type of french administrative division
SYSTEM
YES and NO respectively
(Q740144,P47,Q297473) (Q740144,P47,Q16535681)
action is_in
entity Q740144
action intersection
action find_reverse
entity Q297473
relation P47
action find_reverse
entity Q16535681
relation P47
[ANSWER]
['Q740144', 'P47', 'Q297473'] ['Q740144', 'P47', 'Q16535681']
ASK WHERE { resource:Q740144 property:P47 resource:Q297473 . resource:Q740144 property:P47 resource:Q16535681 }
YES and NO respectively
action is_in
entity Mussy-sur-Seine
action intersection
action find_reverse
entity Gomméville
relation shares border with
action find_reverse
entity canton of La Roche-sur-Yon-1
relation shares border with
['Mussy-sur-Seine', 'shares border with', 'Gomméville'] ['Mussy-sur-Seine', 'shares border with', 'canton of La Roche-sur-Yon-1']
ASK WHERE { resource:Mussy-sur-Seine property:shares_border_with resource:Gomméville . resource:Mussy-sur-Seine property:shares_border_with resource:canton_of_La_Roche-sur-Yon-1 }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1657666 Q16535681
P36
Q20667921
USER
Which french administrative divisions are known as the capital of canton of La Roche-sur-Yon-1 or canton of Léré ?
OR((Q16535681,P36,c(Q20667921)), (Q1657666,P36,c(Q20667921)))
action filter_type
action union
action find
entity Q16535681
relation P36
action find
entity Q1657666
relation P36
type Q20667921
{'OR': [['Q16535681', 'P36', {'concept': 'Q20667921'}], ['Q1657666', 'P36', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q20667921 . { ?d property:P36 ?j . VALUES ( ?d ) { ( resource:Q16535681 ) ( resource:Q1657666 ) } } }
canton of Léré canton of La Roche-sur-Yon-1
action filter_type
action union
action find
entity canton of La Roche-sur-Yon-1
relation capital
action find
entity canton of Léré
relation capital
type type of french administrative division
{'OR': [['canton of La Roche-sur-Yon-1', 'capital', {'concept': 'type of french administrative division'}], ['canton of Léré', 'capital', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:type_of_french_administrative_division . { ?d property:capital ?j . VALUES ( ?d ) { ( resource:canton_of_La_Roche-sur-Yon-1 ) ( resource:canton_of_Léré ) } } }
[]
type of french administrative division
Q190118 Q1089280
SYSTEM
La Roche-sur-Yon, Léré
Q190118 Q1089280
OR((Q16535681,P36,c(Q20667921)), (Q1657666,P36,c(Q20667921)))
action filter_type
action union
action find
entity Q16535681
relation P36
action find
entity Q1657666
relation P36
type Q20667921
[ANSWERS] are known as the capital of canton of La Roche-sur-Yon-1 or canton of Léré
{'OR': [['Q16535681', 'P36', {'concept': 'Q20667921'}], ['Q1657666', 'P36', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q20667921 . { ?d property:P36 ?j . VALUES ( ?d ) { ( resource:Q16535681 ) ( resource:Q1657666 ) } } }
La Roche-sur-Yon Léré
La Roche-sur-Yon and Léré are known as the capital of canton of La Roche-sur-Yon-1 or canton of Léré
La Roche-sur-Yon Léré
action filter_type
action union
action find
entity canton of La Roche-sur-Yon-1
relation capital
action find
entity canton of Léré
relation capital
type type of french administrative division
{'OR': [['canton of La Roche-sur-Yon-1', 'capital', {'concept': 'type of french administrative division'}], ['canton of Léré', 'capital', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:type_of_french_administrative_division . { ?d property:capital ?j . VALUES ( ?d ) { ( resource:canton_of_La_Roche-sur-Yon-1 ) ( resource:canton_of_Léré ) } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q20667921
USER
How many french administrative divisions are adjacent to that french administrative division ?
(Q1089280,P47,c(Q20667921))
['Q1089280', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1089280 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
['Léré', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Léré property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Quantitative|Count|Single entity type|Clarification
Q1089280
SYSTEM
Did you mean Léré ?
(Q190118,P47,c(Q20667921)) (Q1089280,P47,c(Q20667921))
[ANSWER]
['Q190118', 'P47', {'concept': 'Q20667921'}] ['Q1089280', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1089280 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Did you mean Léré ?
Léré
['La Roche-sur-Yon', 'shares border with', {'concept': 'type of french administrative division'}] ['Léré', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Léré property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1089280,P47,c(Q20667921))
['Q1089280', 'P47', {'concept': 'Q20667921'}]
['Léré', 'shares border with', {'concept': 'type of french administrative division'}]
[]
SYSTEM
4
Q1429681 Q890348 Q1422844 Q1140095
(Q1089280,P47,c(Q20667921))
[ANSWER]
['Q1089280', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1089280 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Sury-près-Léré La Celle-sur-Loire Savigny-en-Sancerre Boulleret
4
['Léré', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Léré property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q665411
P206
Q1267889 Q355304 Q20667921
USER
Which french administrative divisions are situated close to around the same number of waterways or watercourses as Leffrinckoucke ?
(c(Q20667921),P206,c(Q1267889)|c(Q355304))
action approx
action union
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action count
action filter_multi_types
action find
entity Q665411
relation P206
type Q1267889
type Q355304
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { resource:Q665411 property:P206 ?p . { { ?p rdf:type ontology:Q1267889 } UNION { ?p rdf:type ontology:Q355304 } } } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?z ) WHERE { { ?g property:P206 ?o . ?g rdf:type ontology:Q20667921 . ?o rdf:type ontology:Q1267889 } UNION { ?g property:P206 ?o . ?g rdf:type ontology:Q20667921 . ?o rdf:type ontology:Q355304 } } GROUP BY ?g } }
Leffrinckoucke
action approx
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
action count
action filter_multi_types
action find
entity Leffrinckoucke
relation located next to body of water
type waterway
type watercourse
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { resource:Leffrinckoucke property:located_next_to_body_of_water ?p . { { ?p rdf:type ontology:waterway } UNION { ?p rdf:type ontology:watercourse } } } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?z ) WHERE { { ?g property:located_next_to_body_of_water ?o . ?g rdf:type ontology:type_of_french_administrative_division . ?o rdf:type ontology:waterway } UNION { ?g property:located_next_to_body_of_water ?o . ?g rdf:type ontology:type_of_french_administrative_division . ?o rdf:type ontology:watercourse } } GROUP BY ?g } }
[]
waterway watercourse type of french administrative division
Q47045 Q249884 Q44401
SYSTEM
Saint-Denis, Saint-Pierre, Cayenne
Q3769 Q665411 Q1649363 Q467030 Q956943 Q842027 Q71356 Q147606 Q429770 Q266886 Q380224 Q1014763 Q652100 Q1326390 Q751619 Q14112 Q47045 Q1066836 Q391365 Q926768 Q1649370 Q1617681 Q654000 Q249884 Q769160 Q513962 Q1014814 Q662942 Q323399 Q70491 Q231180 Q191765 Q26583 Q478215 Q1757048 Q1014771 Q1014731 Q44401 Q1001582 Q691092 Q752535 Q1165029
(c(Q20667921),P206,c(Q1267889)|c(Q355304))
action approx
action union
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action count
action filter_multi_types
action find
entity Q665411
relation P206
type Q1267889
type Q355304
[ANSWERS] are situated close to around the same number of waterways or watercourses as Leffrinckoucke
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { resource:Q665411 property:P206 ?p . { { ?p rdf:type ontology:Q1267889 } UNION { ?p rdf:type ontology:Q355304 } } } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?z ) WHERE { { ?g property:P206 ?o . ?g rdf:type ontology:Q20667921 . ?o rdf:type ontology:Q1267889 } UNION { ?g property:P206 ?o . ?g rdf:type ontology:Q20667921 . ?o rdf:type ontology:Q355304 } } GROUP BY ?g } }
French Guiana Leffrinckoucke Saint-Leu L'Île-Rousse Le Port Rogliano Île-aux-Moines Fort-Mahon-Plage La Possession Sisco Marck Trois-Bassins Saint-Philippe Petite-Île Sérignan Corsica Saint-Denis Grand-Fort-Philippe Bray-Dunes Tahaa Saint-André Saint-Louis Monticello Saint-Pierre Grande-Synthe Oye-Plage Les Avirons Sainte-Marie Gravelines Larmor-Baden Zuydcoote Anglet Béhuard Saint-Benoît Sainte-Suzanne L'Étang-Salé Sainte-Rose Cayenne Batz-sur-Mer Bras-Panon Valras-Plage Le Pouliguen
Saint-Denis, Saint-Pierre and Cayenne are situated close to around the same number of waterways or watercourses as Leffrinckoucke
Saint-Denis Saint-Pierre Cayenne
action approx
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
action count
action filter_multi_types
action find
entity Leffrinckoucke
relation located next to body of water
type waterway
type watercourse
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { resource:Leffrinckoucke property:located_next_to_body_of_water ?p . { { ?p rdf:type ontology:waterway } UNION { ?p rdf:type ontology:watercourse } } } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?z ) WHERE { { ?g property:located_next_to_body_of_water ?o . ?g rdf:type ontology:type_of_french_administrative_division . ?o rdf:type ontology:waterway } UNION { ?g property:located_next_to_body_of_water ?o . ?g rdf:type ontology:type_of_french_administrative_division . ?o rdf:type ontology:watercourse } } GROUP BY ?g } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q273297
P206
Q1267889 Q355304 Q20667921
USER
And what about Ébreuil?
(c(Q20667921),P206,c(Q1267889)|c(Q355304))
action approx
action union
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action count
action filter_multi_types
action find
entity Q273297
relation P206
type Q1267889
type Q355304
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } . ?o rdf:type ?x } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { resource:Q273297 property:P206 ?t . { VALUES ( ?j ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } . ?t rdf:type ?j } } } . FILTER ( ?u = ?n ) }
Ébreuil
action approx
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
action count
action filter_multi_types
action find
entity Ébreuil
relation located next to body of water
type waterway
type watercourse
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:waterway ) ( ontology:watercourse ) } . ?o rdf:type ?x } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { resource:Ébreuil property:located_next_to_body_of_water ?t . { VALUES ( ?j ) { ( ontology:waterway ) ( ontology:watercourse ) } . ?t rdf:type ?j } } } . FILTER ( ?u = ?n ) }
[]
waterway watercourse type of french administrative division
Q30974 Q207253 Q273297
SYSTEM
Rouen, Mantes-la-Jolie, Ébreuil
Q224023 Q245066 Q30974 Q877744 Q1221458 Q236736 Q160199 Q207253 Q675318 Q683550 Q1221814 Q849165 Q453263 Q1073039 Q921780 Q1162138 Q849065 Q849023 Q1031980 Q333447 Q382048 Q738523 Q1164176 Q1075733 Q1217913 Q545015 Q662229 Q273297 Q284445
(c(Q20667921),P206,c(Q1267889)|c(Q355304))
action approx
action union
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action count
action filter_multi_types
action find
entity Q273297
relation P206
type Q1267889
type Q355304
[ANSWERS]
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } . ?o rdf:type ?x } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { resource:Q273297 property:P206 ?t . { VALUES ( ?j ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } . ?t rdf:type ?j } } } . FILTER ( ?u = ?n ) }
Penvénan Chouvigny Rouen Le Portel Saint-Quintin-sur-Sioule Vernon Cherbourg-Octeville Mantes-la-Jolie Bussières-et-Pruns Urville-Nacqueville Menat Saint-Bonnet-de-Rochefort Pleumeur-Bodou Poses Val-de-Reuil Isches Bègues Mazerier Escalles Aigueperse Tardinghen Saint-Gal-sur-Sioule Saint-Léonard La Roche-de-Glun Saint-Agoulin Chaptuzat Jenzat Ébreuil Pontgibaud
Rouen Mantes-la-Jolie Ébreuil
action approx
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
action count
action filter_multi_types
action find
entity Ébreuil
relation located next to body of water
type waterway
type watercourse
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:waterway ) ( ontology:watercourse ) } . ?o rdf:type ?x } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { resource:Ébreuil property:located_next_to_body_of_water ?t . { VALUES ( ?j ) { ( ontology:waterway ) ( ontology:watercourse ) } . ?t rdf:type ?j } } } . FILTER ( ?u = ?n ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30974
P1444
Q878123
USER
Which racing ends its journey at Rouen ?
(c(Q878123),P1444,Q30974)
action filter_type
action find_reverse
entity Q30974
relation P1444
type Q878123
[{'concept': 'Q878123'}, 'P1444', 'Q30974']
SELECT DISTINCT ?w WHERE { ?w property:P1444 resource:Q30974 . ?w rdf:type ontology:Q878123 }
Rouen
action filter_type
action find_reverse
entity Rouen
relation destination point
type racing
[{'concept': 'racing'}, 'destination point', 'Rouen']
SELECT DISTINCT ?w WHERE { ?w property:destination_point resource:Rouen . ?w rdf:type ontology:racing }
[]
racing
Q2120745
SYSTEM
2012 Tour de France, Stage 4
Q2120745
(c(Q878123),P1444,Q30974)
action filter_type
action find_reverse
entity Q30974
relation P1444
type Q878123
[ANSWER] ends its journey at Rouen
[{'concept': 'Q878123'}, 'P1444', 'Q30974']
SELECT DISTINCT ?w WHERE { ?w property:P1444 resource:Q30974 . ?w rdf:type ontology:Q878123 }
2012 Tour de France, Stage 4
2012 Tour de France, Stage 4 ends its journey at Rouen
2012 Tour de France, Stage 4
action filter_type
action find_reverse
entity Rouen
relation destination point
type racing
[{'concept': 'racing'}, 'destination point', 'Rouen']
SELECT DISTINCT ?w WHERE { ?w property:destination_point resource:Rouen . ?w rdf:type ontology:racing }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30974
P1427
Q18608583
USER
Which recurring sporting events have Rouen as the start location ?
(c(Q18608583),P1427,Q30974)
action filter_type
action find_reverse
entity Q30974
relation P1427
type Q18608583
[{'concept': 'Q18608583'}, 'P1427', 'Q30974']
SELECT DISTINCT ?x WHERE { ?x property:P1427 resource:Q30974 . ?x rdf:type ontology:Q18608583 }
Rouen
action filter_type
action find_reverse
entity Rouen
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Rouen']
SELECT DISTINCT ?x WHERE { ?x property:start_point resource:Rouen . ?x rdf:type ontology:recurring_sporting_event }
[]
recurring sporting event
Q757405 Q907272
SYSTEM
1997 Tour de France, 1961 Tour de France
Q757405 Q907272
(c(Q18608583),P1427,Q30974)
action filter_type
action find_reverse
entity Q30974
relation P1427
type Q18608583
[ANSWERS] have Rouen as the start location
[{'concept': 'Q18608583'}, 'P1427', 'Q30974']
SELECT DISTINCT ?x WHERE { ?x property:P1427 resource:Q30974 . ?x rdf:type ontology:Q18608583 }
1997 Tour de France 1961 Tour de France
1997 Tour de France and 1961 Tour de France have Rouen as the start location
1997 Tour de France 1961 Tour de France
action filter_type
action find_reverse
entity Rouen
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Rouen']
SELECT DISTINCT ?x WHERE { ?x property:start_point resource:Rouen . ?x rdf:type ontology:recurring_sporting_event }
[]
Clarification
Simple Question|Single Entity|Indirect
Q757405
P1346
Q502895
USER
Which person emerged victorious in that recurring sporting event ?
(Q757405,P1346,c(Q502895))
action filter_type
action find
entity Q757405
relation P1346
type Q502895
['Q757405', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q757405 property:P1346 ?k . ?k rdf:type ontology:Q502895 }
1997 Tour de France
action filter_type
action find
entity 1997 Tour de France
relation winner
type common name
['1997 Tour de France', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:1997_Tour_de_France property:winner ?k . ?k rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q757405
SYSTEM
Did you mean 1997 Tour de France ?
Q757405 Q907272
(Q757405,P1346,c(Q502895)) (Q907272,P1346,c(Q502895))
[ANSWER]
['Q757405', 'P1346', {'concept': 'Q502895'}] ['Q907272', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q757405 property:P1346 ?k . ?k rdf:type ontology:Q502895 }
1997 Tour de France 1961 Tour de France
Did you mean 1997 Tour de France ?
1997 Tour de France
['1997 Tour de France', 'winner', {'concept': 'common name'}] ['1961 Tour de France', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:1997_Tour_de_France property:winner ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q757405,P1346,c(Q502895))
['Q757405', 'P1346', {'concept': 'Q502895'}]
['1997 Tour de France', 'winner', {'concept': 'common name'}]
[]
Q57959
SYSTEM
Jan Ullrich
Q57959
(Q757405,P1346,c(Q502895))
action filter_type
action find
entity Q757405
relation P1346
type Q502895
[ANSWER] emerged victorious in that recurring sporting event
['Q757405', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q757405 property:P1346 ?k . ?k rdf:type ontology:Q502895 }
Jan Ullrich
Jan Ullrich emerged victorious in that recurring sporting event
Jan Ullrich
action filter_type
action find
entity 1997 Tour de France
relation winner
type common name
['1997 Tour de France', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:1997_Tour_de_France property:winner ?k . ?k rdf:type ontology:common_name }
[]