Simple Question (Direct)
Simple Question
Q6695820
P641
Q349
USER
Which sport was Luc Villalonga a part of ?
(Q6695820,P641,c(Q349))
action filter_type
action find
entity Q6695820
relation P641
type Q349
['Q6695820', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q6695820 property:P641 ?s . ?s rdf:type ontology:Q349 }
Luc Villalonga
action filter_type
action find
entity Luc Villalonga
relation sport
type sport
['Luc Villalonga', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Luc_Villalonga property:sport ?s . ?s rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6695820,P641,c(Q349))
action filter_type
action find
entity Q6695820
relation P641
type Q349
Luc Villalonga was in [ANSWER]
['Q6695820', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q6695820 property:P641 ?s . ?s rdf:type ontology:Q349 }
association football
Luc Villalonga was in association football
association football
action filter_type
action find
entity Luc Villalonga
relation sport
type sport
['Luc Villalonga', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Luc_Villalonga property:sport ?s . ?s rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6695820
P19
Q20667921
USER
Which french administrative division was Luc Villalonga born at ?
(Q6695820,P19,c(Q20667921))
action filter_type
action find
entity Q6695820
relation P19
type Q20667921
['Q6695820', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?k WHERE { resource:Q6695820 property:P19 ?k . ?k rdf:type ontology:Q20667921 }
Luc Villalonga
action filter_type
action find
entity Luc Villalonga
relation place of birth
type type of french administrative division
['Luc Villalonga', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?k WHERE { resource:Luc_Villalonga property:place_of_birth ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q191856
SYSTEM
Oyonnax
Q191856
(Q6695820,P19,c(Q20667921))
action filter_type
action find
entity Q6695820
relation P19
type Q20667921
Luc Villalonga was born in [ANSWER]
['Q6695820', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?k WHERE { resource:Q6695820 property:P19 ?k . ?k rdf:type ontology:Q20667921 }
Oyonnax
Luc Villalonga was born in Oyonnax
Oyonnax
action filter_type
action find
entity Luc Villalonga
relation place of birth
type type of french administrative division
['Luc Villalonga', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?k WHERE { resource:Luc_Villalonga property:place_of_birth ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q22210234
Q20667921
USER
And how about Robert Clauzel?
(Q22210234,P19,c(Q20667921))
action filter_type
action find
entity Q22210234
relation P19
type Q20667921
['Q22210234', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { resource:Q22210234 property:P19 ?h . ?h rdf:type ontology:Q20667921 }
Robert Clauzel
action filter_type
action find
entity Robert Clauzel
relation place of birth
type type of french administrative division
['Robert Clauzel', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { resource:Robert_Clauzel property:place_of_birth ?h . ?h rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q174019
SYSTEM
Béziers
Q174019
(Q22210234,P19,c(Q20667921))
action filter_type
action find
entity Q22210234
relation P19
type Q20667921
[ANSWER]
['Q22210234', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { resource:Q22210234 property:P19 ?h . ?h rdf:type ontology:Q20667921 }
Béziers
Béziers
action filter_type
action find
entity Robert Clauzel
relation place of birth
type type of french administrative division
['Robert Clauzel', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { resource:Robert_Clauzel property:place_of_birth ?h . ?h rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q15324 Q355304 Q20667921
USER
How many french administrative divisions are situated close to atmost 1 bodies of water and watercourses ?
(c(Q20667921),P206,c(Q15324)|c(Q355304))
action count
action atmost
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q355304
value 1
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?v WHERE { ?l rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } } GROUP BY ?v } . FILTER ( ?n <= 1 ) }
action count
action atmost
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type body of water
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
value 1
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?v WHERE { ?l rdf:type ?w . VALUES ( ?w ) { ( ontology:body_of_water ) ( ontology:watercourse ) } } GROUP BY ?v } . FILTER ( ?n <= 1 ) }
[]
body of water watercourse type of french administrative division
SYSTEM
72
Q224023 Q3769 Q665411 Q1649363 Q467030 Q245066 Q956943 Q842027 Q30974 Q877744 Q71356 Q147606 Q429770 Q1221458 Q236736 Q160199 Q266886 Q207253 Q380224 Q675318 Q1014763 Q652100 Q683550 Q1221814 Q849165 Q453263 Q1073039 Q1326390 Q751619 Q921780 Q14112 Q1162138 Q47045 Q1066836 Q391365 Q926768 Q1649370 Q849065 Q1617681 Q654000 Q249884 Q849023 Q769160 Q1031980 Q513962 Q333447 Q1014814 Q662942 Q382048 Q323399 Q70491 Q231180 Q191765 Q738523 Q1164176 Q1075733 Q1217913 Q26583 Q545015 Q478215 Q1757048 Q1014771 Q1014731 Q44401 Q1001582 Q691092 Q662229 Q752535 Q1165029 Q20892 Q273297 Q284445
(c(Q20667921),P206,c(Q15324)|c(Q355304))
action count
action atmost
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q355304
value 1
[ANSWER]
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?v WHERE { ?l rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } } GROUP BY ?v } . FILTER ( ?n <= 1 ) }
Penvénan French Guiana Leffrinckoucke Saint-Leu L'Île-Rousse Chouvigny Le Port Rogliano Rouen Le Portel Île-aux-Moines Fort-Mahon-Plage La Possession Saint-Quintin-sur-Sioule Vernon Cherbourg-Octeville Sisco Mantes-la-Jolie Marck Bussières-et-Pruns Trois-Bassins Saint-Philippe Urville-Nacqueville Menat Saint-Bonnet-de-Rochefort Pleumeur-Bodou Poses Petite-Île Sérignan Val-de-Reuil Corsica Isches Saint-Denis Grand-Fort-Philippe Bray-Dunes Tahaa Saint-André Bègues Saint-Louis Monticello Saint-Pierre Mazerier Grande-Synthe Escalles Oye-Plage Aigueperse Les Avirons Sainte-Marie Tardinghen Gravelines Larmor-Baden Zuydcoote Anglet Saint-Gal-sur-Sioule Saint-Léonard La Roche-de-Glun Saint-Agoulin Béhuard Chaptuzat Saint-Benoît Sainte-Suzanne L'Étang-Salé Sainte-Rose Cayenne Batz-sur-Mer Bras-Panon Jenzat Valras-Plage Le Pouliguen Le Mont-Saint-Michel Ébreuil Pontgibaud
72
action count
action atmost
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type body of water
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
value 1
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?v WHERE { ?l rdf:type ?w . VALUES ( ?w ) { ( ontology:body_of_water ) ( ontology:watercourse ) } } GROUP BY ?v } . FILTER ( ?n <= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3797739
P180
Q502895
USER
Which people are demonstrated in Meeting at the Golden Gate ?
(Q3797739,P180,c(Q502895))
action filter_type
action find
entity Q3797739
relation P180
type Q502895
['Q3797739', 'P180', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q3797739 property:P180 ?z . ?z rdf:type ontology:Q502895 }
Meeting at the Golden Gate
action filter_type
action find
entity Meeting at the Golden Gate
relation depicts
type common name
['Meeting at the Golden Gate', 'depicts', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Meeting_at_the_Golden_Gate property:depicts ?z . ?z rdf:type ontology:common_name }
[]
common name
Q164294 Q314700
SYSTEM
Saint Anna, Joachim
Q164294 Q314700
(Q3797739,P180,c(Q502895))
action filter_type
action find
entity Q3797739
relation P180
type Q502895
[ANSWERS] are demonstrated in Meeting at the Golden Gate
['Q3797739', 'P180', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q3797739 property:P180 ?z . ?z rdf:type ontology:Q502895 }
Saint Anna Joachim
Saint Anna and Joachim are demonstrated in Meeting at the Golden Gate
Saint Anna Joachim
action filter_type
action find
entity Meeting at the Golden Gate
relation depicts
type common name
['Meeting at the Golden Gate', 'depicts', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Meeting_at_the_Golden_Gate property:depicts ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19013082
Q502895
USER
And how about Portrait of Pauline Bonaparte princess Borghese?
(Q19013082,P180,c(Q502895))
action filter_type
action find
entity Q19013082
relation P180
type Q502895
['Q19013082', 'P180', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q19013082 property:P180 ?v . ?v rdf:type ontology:Q502895 }
Portrait of Pauline Bonaparte princess Borghese
action filter_type
action find
entity Portrait of Pauline Bonaparte princess Borghese
relation depicts
type common name
['Portrait of Pauline Bonaparte princess Borghese', 'depicts', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Portrait_of_Pauline_Bonaparte_princess_Borghese property:depicts ?v . ?v rdf:type ontology:common_name }
[]
common name
Q152785
SYSTEM
Pauline Bonaparte
Q152785
(Q19013082,P180,c(Q502895))
action filter_type
action find
entity Q19013082
relation P180
type Q502895
[ANSWER]
['Q19013082', 'P180', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q19013082 property:P180 ?v . ?v rdf:type ontology:Q502895 }
Pauline Bonaparte
Pauline Bonaparte
action filter_type
action find
entity Portrait of Pauline Bonaparte princess Borghese
relation depicts
type common name
['Portrait of Pauline Bonaparte princess Borghese', 'depicts', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Portrait_of_Pauline_Bonaparte_princess_Borghese property:depicts ?v . ?v rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q873588
P1303
Q34379 Q502895
USER
How many musical instruments are played by lesser number of people than Jinghu ?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q873588
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?w ) WHERE { ?h property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:P1303 resource:Q873588 . ?o rdf:type ontology:Q502895 } } . FILTER ( ?w < ?c ) }
Jinghu
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Jinghu
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?w ) WHERE { ?h property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:instrument resource:Jinghu . ?o rdf:type ontology:common_name } } . FILTER ( ?w < ?c ) }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q873588
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?w ) WHERE { ?h property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:P1303 resource:Q873588 . ?o rdf:type ontology:Q502895 } } . FILTER ( ?w < ?c ) }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Jinghu
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?w ) WHERE { ?h property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:instrument resource:Jinghu . ?o rdf:type ontology:common_name } } . FILTER ( ?w < ?c ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q5398426
USER
How many television series did exactly 2 people dub for ?
(c(Q5398426),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q5398426
type Q502895
value 2
[{'concept': 'Q5398426'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?y ) WHERE { ?s property:P725 ?g . ?g rdf:type ontology:Q502895 . ?s rdf:type ontology:Q5398426 } GROUP BY ?s } . FILTER ( ?y = 2 ) }
action count
action equal
action find_tuple_counts
relation voice actor
type television series
type common name
value 2
[{'concept': 'television series'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?y ) WHERE { ?s property:voice_actor ?g . ?g rdf:type ontology:common_name . ?s rdf:type ontology:television_series } GROUP BY ?s } . FILTER ( ?y = 2 ) }
[]
common name television series
SYSTEM
43
Q1149942 Q487695 Q7480931 Q494804 Q483547 Q752495 Q133532 Q602434 Q1202916 Q486623 Q482796 Q488467 Q1135764 Q3565008 Q11320196 Q2607852 Q3980545 Q482802 Q696986 Q1052846 Q1367069 Q494610 Q8916464 Q484518 Q482865 Q11332238 Q116122 Q724155 Q11621483 Q606180 Q2626017 Q483585 Q7447123 Q1350885 Q838203 Q664845 Q618974 Q495450 Q11275607 Q2619218 Q794345 Q615650 Q582788
(c(Q5398426),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q5398426
type Q502895
value 2
[ANSWER]
[{'concept': 'Q5398426'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?y ) WHERE { ?s property:P725 ?g . ?g rdf:type ontology:Q502895 . ?s rdf:type ontology:Q5398426 } GROUP BY ?s } . FILTER ( ?y = 2 ) }
Sket Dance انیمه Un-Go Yuyushiki Hanasaku Iroha Mitsudomoe Asura Cryin' Btooom! Idolmaster: Xenoglossia Working!! Nekogami Yaoyorozu The World God Only Knows Ben-To Softenni Mushibugyō D-Frag! Sasameki Koto Tamagotchi! IS (Infinite Stratos) Beelzebub Last Exile Hyakka Ryōran Samurai Girls Guilty Crown Servant x Service The Legend of the Legendary Heroes Dog Days Fantasista Doll Hayate the Combat Butler Asobi ni iku yo! Arpeggio of Blue Steel Maria Holic Aesthetica of a Rogue Hero Denpa Onna to Seishun Otoko Wanna be the Strongest in the World Queen's Blade Rebellion Gdgd Fairies Pumpkin Scissors Umi Monogatari: Anata ga Ite Kureta Koto Demon King Daimao Happy Kappy Yozakura Quartet Beyblade: Metal Fusion Aoi Hana Saki
43
action count
action equal
action find_tuple_counts
relation voice actor
type television series
type common name
value 2
[{'concept': 'television series'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?y ) WHERE { ?s property:voice_actor ?g . ?g rdf:type ontology:common_name . ?s rdf:type ontology:television_series } GROUP BY ?s } . FILTER ( ?y = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5552547 Q6695820
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Luc Villalonga or Gerrit-Jan van Velze ?
OR((Q6695820,P27,c(Q15617994)), (Q5552547,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6695820
relation P27
action find
entity Q5552547
relation P27
type Q15617994
{'OR': [['Q6695820', 'P27', {'concept': 'Q15617994'}], ['Q5552547', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q6695820 property:P27 ?x } UNION { resource:Q5552547 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Gerrit-Jan van Velze Luc Villalonga
action filter_type
action union
action find
entity Luc Villalonga
relation country of citizenship
action find
entity Gerrit-Jan van Velze
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Luc Villalonga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gerrit-Jan van Velze', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Luc_Villalonga property:country_of_citizenship ?x } UNION { resource:Gerrit-Jan_van_Velze property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q258
SYSTEM
France, South Africa
Q142 Q258
OR((Q6695820,P27,c(Q15617994)), (Q5552547,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6695820
relation P27
action find
entity Q5552547
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Luc Villalonga or Gerrit-Jan van Velze
{'OR': [['Q6695820', 'P27', {'concept': 'Q15617994'}], ['Q5552547', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q6695820 property:P27 ?x } UNION { resource:Q5552547 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
France South Africa
France and South Africa are the countries of citizenship of Luc Villalonga or Gerrit-Jan van Velze
France South Africa
action filter_type
action union
action find
entity Luc Villalonga
relation country of citizenship
action find
entity Gerrit-Jan van Velze
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Luc Villalonga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gerrit-Jan van Velze', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Luc_Villalonga property:country_of_citizenship ?x } UNION { resource:Gerrit-Jan_van_Velze property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q142 Q258
P17
Q15617994
USER
Which administrative territories do France and South Africa belong to ?
(Q142,P17,c(Q15617994)) (Q258,P17,c(Q15617994))
action union
action filter_type
action find
entity Q142
relation P17
type Q15617994
action filter_type
action find
entity Q258
relation P17
type Q15617994
['Q142', 'P17', {'concept': 'Q15617994'}] ['Q258', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?s property:P17 ?a . VALUES ( ?s ) { ( resource:Q142 ) ( resource:Q258 ) } }
France South Africa
action union
action filter_type
action find
entity France
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity South Africa
relation country
type designation for an administrative territorial entity
['France', 'country', {'concept': 'designation for an administrative territorial entity'}] ['South Africa', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?s property:country ?a . VALUES ( ?s ) { ( resource:France ) ( resource:South_Africa ) } }
[]
designation for an administrative territorial entity
Q142 Q258
SYSTEM
France, South Africa
Q142 Q258
(Q142,P17,c(Q15617994)) (Q258,P17,c(Q15617994))
action union
action filter_type
action find
entity Q142
relation P17
type Q15617994
action filter_type
action find
entity Q258
relation P17
type Q15617994
[ANSWERS] belong to [ANSWERS]
['Q142', 'P17', {'concept': 'Q15617994'}] ['Q258', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?s property:P17 ?a . VALUES ( ?s ) { ( resource:Q142 ) ( resource:Q258 ) } }
France South Africa
France and South Africa belong to France and South Africa
France South Africa
action union
action filter_type
action find
entity France
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity South Africa
relation country
type designation for an administrative territorial entity
['France', 'country', {'concept': 'designation for an administrative territorial entity'}] ['South Africa', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?s property:country ?a . VALUES ( ?s ) { ( resource:France ) ( resource:South_Africa ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q258
P1376
Q56061
USER
Which administrative territories are the capital of that administrative territory ?
(c(Q56061),P1376,Q258)
action filter_type
action find_reverse
entity Q258
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q258']
SELECT DISTINCT ?f WHERE { ?f property:P1376 resource:Q258 . ?f rdf:type ontology:Q56061 }
South Africa
action filter_type
action find_reverse
entity South Africa
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'South Africa']
SELECT DISTINCT ?f WHERE { ?f property:capital_of resource:South_Africa . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q142
SYSTEM
Did you mean France ?
Q142 Q258
(c(Q56061),P1376,Q142) (c(Q56061),P1376,Q258)
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q142'] [{'concept': 'Q56061'}, 'P1376', 'Q258']
SELECT DISTINCT ?f WHERE { ?f property:P1376 resource:Q258 . ?f rdf:type ontology:Q56061 }
France South Africa
Did you mean France ?
France
[{'concept': 'administrative territorial entity'}, 'capital of', 'France'] [{'concept': 'administrative territorial entity'}, 'capital of', 'South Africa']
SELECT DISTINCT ?f WHERE { ?f property:capital_of resource:South_Africa . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant South Africa. Could you tell me the answer for that?
(c(Q56061),P1376,Q258)
Q258
[{'concept': 'Q56061'}, 'P1376', 'Q258']
[{'concept': 'administrative territorial entity'}, 'capital of', 'South Africa']
[]
Q5465 Q37701
SYSTEM
Cape Town, Bloemfontein
Q5465 Q37701
(c(Q56061),P1376,Q258)
action filter_type
action find_reverse
entity Q258
relation P1376
type Q56061
[ANSWERS] are the capital of that administrative territory
[{'concept': 'Q56061'}, 'P1376', 'Q258']
SELECT DISTINCT ?f WHERE { ?f property:P1376 resource:Q258 . ?f rdf:type ontology:Q56061 }
Cape Town Bloemfontein
Cape Town and Bloemfontein are the capital of that administrative territory
Cape Town Bloemfontein
action filter_type
action find_reverse
entity South Africa
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'South Africa']
SELECT DISTINCT ?f WHERE { ?f property:capital_of resource:South_Africa . ?f rdf:type ontology:administrative_territorial_entity }
[]