Simple Question (Direct)
Simple Question
Q11770689
P7
Q502895
USER
Who has Martin Yanakiev as their sibling ?
(Q11770689,P7,c(Q502895))
action filter_type
action find
entity Q11770689
relation P7
type Q502895
['Q11770689', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q11770689 property:P7 ?k . ?k rdf:type ontology:Q502895 }
Martin Yanakiev
action filter_type
action find
entity Martin Yanakiev
relation brother
type common name
['Martin Yanakiev', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Martin_Yanakiev property:brother ?k . ?k rdf:type ontology:common_name }
[]
common name
Q972954
SYSTEM
Ivo Yanakiev
Q972954
(Q11770689,P7,c(Q502895))
action filter_type
action find
entity Q11770689
relation P7
type Q502895
[ANSWER] has Martin Yanakiev as their sibling
['Q11770689', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q11770689 property:P7 ?k . ?k rdf:type ontology:Q502895 }
Ivo Yanakiev
Ivo Yanakiev has Martin Yanakiev as their sibling
Ivo Yanakiev
action filter_type
action find
entity Martin Yanakiev
relation brother
type common name
['Martin Yanakiev', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Martin_Yanakiev property:brother ?k . ?k rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3083908 Q972954
P19
Q56061
USER
Which administrative territories are the places of birth of Ivo Yanakiev or François Basset ?
OR((Q972954,P19,c(Q56061)), (Q3083908,P19,c(Q56061)))
action filter_type
action union
action find
entity Q972954
relation P19
action find
entity Q3083908
relation P19
type Q56061
{'OR': [['Q972954', 'P19', {'concept': 'Q56061'}], ['Q3083908', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q972954 property:P19 ?s } UNION { resource:Q3083908 property:P19 ?s } } . ?s rdf:type ontology:Q56061 }
François Basset Ivo Yanakiev
action filter_type
action union
action find
entity Ivo Yanakiev
relation place of birth
action find
entity François Basset
relation place of birth
type administrative territorial entity
{'OR': [['Ivo Yanakiev', 'place of birth', {'concept': 'administrative territorial entity'}], ['François Basset', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Ivo_Yanakiev property:place_of_birth ?s } UNION { resource:François_Basset property:place_of_birth ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q621 Q6509
SYSTEM
Versailles, Burgas
Q621 Q6509
OR((Q972954,P19,c(Q56061)), (Q3083908,P19,c(Q56061)))
action filter_type
action union
action find
entity Q972954
relation P19
action find
entity Q3083908
relation P19
type Q56061
[ANSWERS] are the places of birth of Ivo Yanakiev or François Basset
{'OR': [['Q972954', 'P19', {'concept': 'Q56061'}], ['Q3083908', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q972954 property:P19 ?s } UNION { resource:Q3083908 property:P19 ?s } } . ?s rdf:type ontology:Q56061 }
Versailles Burgas
Versailles and Burgas are the places of birth of Ivo Yanakiev or François Basset
Versailles Burgas
action filter_type
action union
action find
entity Ivo Yanakiev
relation place of birth
action find
entity François Basset
relation place of birth
type administrative territorial entity
{'OR': [['Ivo Yanakiev', 'place of birth', {'concept': 'administrative territorial entity'}], ['François Basset', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Ivo_Yanakiev property:place_of_birth ?s } UNION { resource:François_Basset property:place_of_birth ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q621
P47
Q20667921
USER
How many french administrative divisions share the border with Versailles ?
(Q621,P47,c(Q20667921))
action count
action filter_type
action find
entity Q621
relation P47
type Q20667921
['Q621', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { resource:Q621 property:P47 ?k . ?k rdf:type ontology:Q20667921 }
Versailles
action count
action filter_type
action find
entity Versailles
relation shares border with
type type of french administrative division
['Versailles', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { resource:Versailles property:shares_border_with ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
12
Q83439 Q1418760 Q83432 Q256137 Q638656 Q237281 Q237303 Q456327 Q372483 Q112683 Q636993 Q387447
(Q621,P47,c(Q20667921))
action count
action filter_type
action find
entity Q621
relation P47
type Q20667921
[ANSWER]
['Q621', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { resource:Q621 property:P47 ?k . ?k rdf:type ontology:Q20667921 }
Bailly Rocquencourt Viroflay Buc Vaucresson Le Chesnay Guyancourt Ville-d'Avray Jouy-en-Josas Saint-Cyr-l'École Marnes-la-Coquette Vélizy-Villacoublay
12
action count
action filter_type
action find
entity Versailles
relation shares border with
type type of french administrative division
['Versailles', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { resource:Versailles property:shares_border_with ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1020673
P17
Q15617994
USER
Which administrative territory is Palaja present in ?
(Q1020673,P17,c(Q15617994))
action filter_type
action find
entity Q1020673
relation P17
type Q15617994
['Q1020673', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q1020673 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Palaja
action filter_type
action find
entity Palaja
relation country
type designation for an administrative territorial entity
['Palaja', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Palaja property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1020673,P17,c(Q15617994))
action filter_type
action find
entity Q1020673
relation P17
type Q15617994
Palaja is in [ANSWER]
['Q1020673', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q1020673 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
France
Palaja is in France
France
action filter_type
action find
entity Palaja
relation country
type designation for an administrative territorial entity
['Palaja', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Palaja property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1020673
P47
Q20667921
USER
Which french administrative divisions share border with Palaja ?
(Q1020673,P47,c(Q20667921))
action filter_type
action find
entity Q1020673
relation P47
type Q20667921
['Q1020673', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { resource:Q1020673 property:P47 ?o . ?o rdf:type ontology:Q20667921 }
Palaja
action filter_type
action find
entity Palaja
relation shares border with
type type of french administrative division
['Palaja', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { resource:Palaja property:shares_border_with ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q192910 Q187445 Q1086559
SYSTEM
Villefloure, Cavanac, Leuc
Q192910 Q962905 Q1149456 Q187445 Q1086559
(Q1020673,P47,c(Q20667921))
action filter_type
action find
entity Q1020673
relation P47
type Q20667921
[ANSWERS] share border with Palaja
['Q1020673', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { resource:Q1020673 property:P47 ?o . ?o rdf:type ontology:Q20667921 }
Villefloure Montirat Cazilhac Cavanac Leuc
Villefloure, Cavanac and Leuc share border with Palaja
Villefloure Cavanac Leuc
action filter_type
action find
entity Palaja
relation shares border with
type type of french administrative division
['Palaja', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { resource:Palaja property:shares_border_with ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q1020673
Q515
USER
And which city?
(Q1020673,P47,c(Q515))
action filter_type
action find
entity Q1020673
relation P47
type Q515
['Q1020673', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { resource:Q1020673 property:P47 ?t . ?t rdf:type ontology:Q515 }
Palaja
action filter_type
action find
entity Palaja
relation shares border with
type city
['Palaja', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { resource:Palaja property:shares_border_with ?t . ?t rdf:type ontology:city }
[]
city
Q6582
SYSTEM
Carcassonne
Q6582
(Q1020673,P47,c(Q515))
action filter_type
action find
entity Q1020673
relation P47
type Q515
[ANSWER]
['Q1020673', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { resource:Q1020673 property:P47 ?t . ?t rdf:type ontology:Q515 }
Carcassonne
Carcassonne
action filter_type
action find
entity Palaja
relation shares border with
type city
['Palaja', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { resource:Palaja property:shares_border_with ?t . ?t rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q6582 Q69083
P47
Q20667921
USER
Is Domléger-Longvillers bordered by that city ?
(Q6582,P47,Q69083)
action is_in
entity Q69083
action find
entity Q6582
relation P47
['Q6582', 'P47', 'Q69083']
ASK WHERE { resource:Q6582 property:P47 resource:Q69083 }
Carcassonne Domléger-Longvillers
action is_in
entity Domléger-Longvillers
action find
entity Carcassonne
relation shares border with
['Carcassonne', 'shares border with', 'Domléger-Longvillers']
ASK WHERE { resource:Carcassonne property:shares_border_with resource:Domléger-Longvillers }
[]
type of french administrative division
SYSTEM
NO
(Q6582,P47,Q69083)
action is_in
entity Q69083
action find
entity Q6582
relation P47
[ANSWER]
['Q6582', 'P47', 'Q69083']
ASK WHERE { resource:Q6582 property:P47 resource:Q69083 }
No
action is_in
entity Domléger-Longvillers
action find
entity Carcassonne
relation shares border with
['Carcassonne', 'shares border with', 'Domléger-Longvillers']
ASK WHERE { resource:Carcassonne property:shares_border_with resource:Domléger-Longvillers }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q972954 Q6509 Q5188314
P19
Q56061
USER
Does Ivo Yanakiev have birthplace at Burgas and Cross Hills ?
(Q972954,P19,Q6509) (Q972954,P19,Q5188314)
action is_in
entity Q972954
action intersection
action find_reverse
entity Q6509
relation P19
action find_reverse
entity Q5188314
relation P19
['Q972954', 'P19', 'Q6509'] ['Q972954', 'P19', 'Q5188314']
ASK WHERE { resource:Q972954 property:P19 resource:Q6509 . resource:Q972954 property:P19 resource:Q5188314 }
Ivo Yanakiev Burgas Cross Hills
action is_in
entity Ivo Yanakiev
action intersection
action find_reverse
entity Burgas
relation place of birth
action find_reverse
entity Cross Hills
relation place of birth
['Ivo Yanakiev', 'place of birth', 'Burgas'] ['Ivo Yanakiev', 'place of birth', 'Cross Hills']
ASK WHERE { resource:Ivo_Yanakiev property:place_of_birth resource:Burgas . resource:Ivo_Yanakiev property:place_of_birth resource:Cross_Hills }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q972954,P19,Q6509) (Q972954,P19,Q5188314)
action is_in
entity Q972954
action intersection
action find_reverse
entity Q6509
relation P19
action find_reverse
entity Q5188314
relation P19
[ANSWER]
['Q972954', 'P19', 'Q6509'] ['Q972954', 'P19', 'Q5188314']
ASK WHERE { resource:Q972954 property:P19 resource:Q6509 . resource:Q972954 property:P19 resource:Q5188314 }
YES and NO respectively
action is_in
entity Ivo Yanakiev
action intersection
action find_reverse
entity Burgas
relation place of birth
action find_reverse
entity Cross Hills
relation place of birth
['Ivo Yanakiev', 'place of birth', 'Burgas'] ['Ivo Yanakiev', 'place of birth', 'Cross Hills']
ASK WHERE { resource:Ivo_Yanakiev property:place_of_birth resource:Burgas . resource:Ivo_Yanakiev property:place_of_birth resource:Cross_Hills }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q15324 Q1267889 Q515
USER
Which cities are situated in the neighbourhood of exactly 2 bodies of water and waterways ?
(c(Q515),P206,c(Q15324)|c(Q1267889))
action equal
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q1267889
value 2
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?z ) WHERE { { ?o rdf:type ontology:Q15324 . ?a rdf:type ontology:Q515 . ?a property:P206 ?o } UNION { ?a property:P206 ?o . ?o rdf:type ontology:Q1267889 . ?a rdf:type ontology:Q515 } } GROUP BY ?a } . FILTER ( ?z = 2 ) }
action equal
action union
action find_tuple_counts
relation located next to body of water
type city
type body of water
action find_tuple_counts
relation located next to body of water
type city
type waterway
value 2
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?z ) WHERE { { ?o rdf:type ontology:body_of_water . ?a rdf:type ontology:city . ?a property:located_next_to_body_of_water ?o } UNION { ?a property:located_next_to_body_of_water ?o . ?o rdf:type ontology:waterway . ?a rdf:type ontology:city } } GROUP BY ?a } . FILTER ( ?z = 2 ) }
[]
body of water waterway city
Q1410
SYSTEM
Gibraltar
Q1410
(c(Q515),P206,c(Q15324)|c(Q1267889))
action equal
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q1267889
value 2
[ANSWER] is situated in the neighbourhood of exactly 2 bodies of water and waterways
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?z ) WHERE { { ?o rdf:type ontology:Q15324 . ?a rdf:type ontology:Q515 . ?a property:P206 ?o } UNION { ?a property:P206 ?o . ?o rdf:type ontology:Q1267889 . ?a rdf:type ontology:Q515 } } GROUP BY ?a } . FILTER ( ?z = 2 ) }
Gibraltar
Gibraltar is situated in the neighbourhood of exactly 2 bodies of water and waterways
Gibraltar
action equal
action union
action find_tuple_counts
relation located next to body of water
type city
type body of water
action find_tuple_counts
relation located next to body of water
type city
type waterway
value 2
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?z ) WHERE { { ?o rdf:type ontology:body_of_water . ?a rdf:type ontology:city . ?a property:located_next_to_body_of_water ?o } UNION { ?a property:located_next_to_body_of_water ?o . ?o rdf:type ontology:waterway . ?a rdf:type ontology:city } } GROUP BY ?a } . FILTER ( ?z = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7352615 Q6582
P19 P190
Q56061
USER
Which administrative territories are sister towns of Carcassonne or were Robin Lee Bruce born ?
OR((Q6582,P190,c(Q56061)), (Q7352615,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6582
relation P190
action find
entity Q7352615
relation P19
type Q56061
{'OR': [['Q6582', 'P190', {'concept': 'Q56061'}], ['Q7352615', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . { { resource:Q7352615 property:P19 ?g } UNION { resource:Q6582 property:P190 ?g } } }
Robin Lee Bruce Carcassonne
action filter_type
action union
action find
entity Carcassonne
relation sister city
action find
entity Robin Lee Bruce
relation place of birth
type administrative territorial entity
{'OR': [['Carcassonne', 'sister city', {'concept': 'administrative territorial entity'}], ['Robin Lee Bruce', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . { { resource:Robin_Lee_Bruce property:place_of_birth ?g } UNION { resource:Carcassonne property:sister_city ?g } } }
[]
administrative territorial entity
Q1770 Q23197
SYSTEM
Tallinn, Nashville
Q1770 Q23197
OR((Q6582,P190,c(Q56061)), (Q7352615,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6582
relation P190
action find
entity Q7352615
relation P19
type Q56061
[ANSWERS] are sister towns of Carcassonne or were Robin Lee Bruce born
{'OR': [['Q6582', 'P190', {'concept': 'Q56061'}], ['Q7352615', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . { { resource:Q7352615 property:P19 ?g } UNION { resource:Q6582 property:P190 ?g } } }
Tallinn Nashville
Tallinn and Nashville are sister towns of Carcassonne or were Robin Lee Bruce born
Tallinn Nashville
action filter_type
action union
action find
entity Carcassonne
relation sister city
action find
entity Robin Lee Bruce
relation place of birth
type administrative territorial entity
{'OR': [['Carcassonne', 'sister city', {'concept': 'administrative territorial entity'}], ['Robin Lee Bruce', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . { { resource:Robin_Lee_Bruce property:place_of_birth ?g } UNION { resource:Carcassonne property:sister_city ?g } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3947670
P417
Q1445650 Q502895 Q56061
USER
How many administrative territories have approximately the same number of holidays and people as their patron saint as San Mauro Mare ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q3947670
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { FILTER ( ?o = ?l ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q3947670 property:P417 ?d . { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?w WHERE { { ?w property:P417 ?t . ?w rdf:type ontology:Q56061 . ?t rdf:type ontology:Q502895 } UNION { ?w property:P417 ?t . ?t rdf:type ontology:Q1445650 . ?w rdf:type ontology:Q56061 } } GROUP BY ?w } }
San Mauro Mare
action count
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity San Mauro Mare
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { FILTER ( ?o = ?l ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:San_Mauro_Mare property:patron_saint ?d . { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:holiday ) ( ontology:common_name ) } } } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?w WHERE { { ?w property:patron_saint ?t . ?w rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:common_name } UNION { ?w property:patron_saint ?t . ?t rdf:type ontology:holiday . ?w rdf:type ontology:administrative_territorial_entity } } GROUP BY ?w } }
[]
holiday common name administrative territorial entity
SYSTEM
95
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q3947670
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { FILTER ( ?o = ?l ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q3947670 property:P417 ?d . { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?w WHERE { { ?w property:P417 ?t . ?w rdf:type ontology:Q56061 . ?t rdf:type ontology:Q502895 } UNION { ?w property:P417 ?t . ?t rdf:type ontology:Q1445650 . ?w rdf:type ontology:Q56061 } } GROUP BY ?w } }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
95
action count
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity San Mauro Mare
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { FILTER ( ?o = ?l ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:San_Mauro_Mare property:patron_saint ?d . { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:holiday ) ( ontology:common_name ) } } } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?w WHERE { { ?w property:patron_saint ?t . ?w rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:common_name } UNION { ?w property:patron_saint ?t . ?t rdf:type ontology:holiday . ?w rdf:type ontology:administrative_territorial_entity } } GROUP BY ?w } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q621
P6
Q502895
USER
Which person has Versailles as its head of government ?
(Q621,P6,c(Q502895))
action filter_type
action find
entity Q621
relation P6
type Q502895
['Q621', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q621 property:P6 ?c . ?c rdf:type ontology:Q502895 }
Versailles
action filter_type
action find
entity Versailles
relation head of government
type common name
['Versailles', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Versailles property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]
common name
Q3086255
SYSTEM
François de Mazières
Q3086255
(Q621,P6,c(Q502895))
action filter_type
action find
entity Q621
relation P6
type Q502895
[ANSWER] has Versailles as its head of government
['Q621', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q621 property:P6 ?c . ?c rdf:type ontology:Q502895 }
François de Mazières
François de Mazières has Versailles as its head of government
François de Mazières
action filter_type
action find
entity Versailles
relation head of government
type common name
['Versailles', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Versailles property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3086255
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q3086255,P102,c(Q7210356))
action filter_type
action find
entity Q3086255
relation P102
type Q7210356
['Q3086255', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?l WHERE { resource:Q3086255 property:P102 ?l . ?l rdf:type ontology:Q7210356 }
François de Mazières
action filter_type
action find
entity François de Mazières
relation member of political party
type political organization
['François de Mazières', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?l WHERE { resource:François_de_Mazières property:member_of_political_party ?l . ?l rdf:type ontology:political_organization }
[]
political organization
Q827415
SYSTEM
Union for French Democracy
Q827415
(Q3086255,P102,c(Q7210356))
action filter_type
action find
entity Q3086255
relation P102
type Q7210356
That person is affiliated or [ANSWER]
['Q3086255', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?l WHERE { resource:Q3086255 property:P102 ?l . ?l rdf:type ontology:Q7210356 }
Union for French Democracy
That person is affiliated or Union for French Democracy
Union for French Democracy
action filter_type
action find
entity François de Mazières
relation member of political party
type political organization
['François de Mazières', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?l WHERE { resource:François_de_Mazières property:member_of_political_party ?l . ?l rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q5258620 Q3086255
P102
Q7210356
USER
Or Dennis Kwok?
OR((Q3086255,P102,c(Q7210356)), (Q5258620,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q3086255
relation P102
action find
entity Q5258620
relation P102
type Q7210356
{'OR': [['Q3086255', 'P102', {'concept': 'Q7210356'}], ['Q5258620', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q7210356 . { { resource:Q5258620 property:P102 ?o } UNION { resource:Q3086255 property:P102 ?o } } }
Dennis Kwok François de Mazières
action filter_type
action union
action find
entity François de Mazières
relation member of political party
action find
entity Dennis Kwok
relation member of political party
type political organization
{'OR': [['François de Mazières', 'member of political party', {'concept': 'political organization'}], ['Dennis Kwok', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_organization . { { resource:Dennis_Kwok property:member_of_political_party ?o } UNION { resource:François_de_Mazières property:member_of_political_party ?o } } }
[]
political organization
Q827415 Q23055
SYSTEM
Union for French Democracy, Civic Party
Q827415 Q23055
OR((Q3086255,P102,c(Q7210356)), (Q5258620,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q3086255
relation P102
action find
entity Q5258620
relation P102
type Q7210356
[ANSWERS]
{'OR': [['Q3086255', 'P102', {'concept': 'Q7210356'}], ['Q5258620', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q7210356 . { { resource:Q5258620 property:P102 ?o } UNION { resource:Q3086255 property:P102 ?o } } }
Union for French Democracy Civic Party
Union for French Democracy Civic Party
action filter_type
action union
action find
entity François de Mazières
relation member of political party
action find
entity Dennis Kwok
relation member of political party
type political organization
{'OR': [['François de Mazières', 'member of political party', {'concept': 'political organization'}], ['Dennis Kwok', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_organization . { { resource:Dennis_Kwok property:member_of_political_party ?o } UNION { resource:François_de_Mazières property:member_of_political_party ?o } } }
[]