Simple Question (Direct)
Simple Question
Q2898220
P39
Q12737077
USER
What were the positions held by Bernard Legrand ?
(Q2898220,P39,c(Q12737077))
action filter_type
action find
entity Q2898220
relation P39
type Q12737077
['Q2898220', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2898220 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Bernard Legrand
action filter_type
action find
entity Bernard Legrand
relation position held
type occupation
['Bernard Legrand', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Bernard_Legrand property:position_held ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q14828018 Q382617 Q3780304
SYSTEM
member of the Senate of France, maire, Member of the General Council
Q14828018 Q382617 Q3780304
(Q2898220,P39,c(Q12737077))
action filter_type
action find
entity Q2898220
relation P39
type Q12737077
The positions held by Bernard Legrand were [ANSWERS]
['Q2898220', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2898220 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
member of the Senate of France maire Member of the General Council
The positions held by Bernard Legrand were member of the Senate of France, maire and Member of the General Council
member of the Senate of France maire Member of the General Council
action filter_type
action find
entity Bernard Legrand
relation position held
type occupation
['Bernard Legrand', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Bernard_Legrand property:position_held ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3780304
P1313
Q20667921
USER
Which french administrative division has Member of the General Council as title of head of government ?
(c(Q20667921),P1313,Q3780304)
action filter_type
action find_reverse
entity Q3780304
relation P1313
type Q20667921
[{'concept': 'Q20667921'}, 'P1313', 'Q3780304']
SELECT DISTINCT ?s WHERE { ?s property:P1313 resource:Q3780304 . ?s rdf:type ontology:Q20667921 }
Member of the General Council
action filter_type
action find_reverse
entity Member of the General Council
relation office held by head of government
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'office held by head of government', 'Member of the General Council']
SELECT DISTINCT ?s WHERE { ?s property:office_held_by_head_of_government resource:Member_of_the_General_Council . ?s rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q658007
SYSTEM
canton of Clamecy
Q658007
(c(Q20667921),P1313,Q3780304)
action filter_type
action find_reverse
entity Q3780304
relation P1313
type Q20667921
The [ANSWER] has Member of the General Council as title of head of government
[{'concept': 'Q20667921'}, 'P1313', 'Q3780304']
SELECT DISTINCT ?s WHERE { ?s property:P1313 resource:Q3780304 . ?s rdf:type ontology:Q20667921 }
canton of Clamecy
The canton of Clamecy has Member of the General Council as title of head of government
canton of Clamecy
action filter_type
action find_reverse
entity Member of the General Council
relation office held by head of government
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'office held by head of government', 'Member of the General Council']
SELECT DISTINCT ?s WHERE { ?s property:office_held_by_head_of_government resource:Member_of_the_General_Council . ?s rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3780304
P768
Q15617994
USER
What did that occupation represent ?
(Q658007,P768,c(Q15617994))
action filter_type
action find
entity Q3780304
relation P768
type Q15617994
['Q658007', 'P768', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q3780304 property:P768 ?g . ?g rdf:type ontology:Q15617994 }
Member of the General Council
action filter_type
action find
entity Member of the General Council
relation electoral district
type designation for an administrative territorial entity
['canton of Clamecy', 'electoral district', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Member_of_the_General_Council property:electoral_district ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q184188
SYSTEM
canton of France (until 2015)
Q184188
(Q658007,P768,c(Q15617994))
action filter_type
action find
entity Q3780304
relation P768
type Q15617994
That occupation represented the [ANSWER]
['Q658007', 'P768', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q3780304 property:P768 ?g . ?g rdf:type ontology:Q15617994 }
canton of France (until 2015)
That occupation represented the canton of France (until 2015)
canton of France (until 2015)
action filter_type
action find
entity Member of the General Council
relation electoral district
type designation for an administrative territorial entity
['canton of Clamecy', 'electoral district', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Member_of_the_General_Council property:electoral_district ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P361
Q553036 Q15617994
USER
How many administrative territories are a part of less number of natural region of Germanys than that administrative territory ?
(c(Q15617994),P361,c(Q553036))
action count
action less
action find_tuple_counts
relation P361
type Q553036
type Q15617994
action count
action filter_type
action find
entity Q184188
relation P361
type Q553036
[{'concept': 'Q15617994'}, 'P361', {'concept': 'Q553036'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?h ) WHERE { ?l property:P361 ?f . ?l rdf:type ontology:Q553036 . ?f rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?h < ?d ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q184188 property:P361 ?k . ?k rdf:type ontology:Q553036 } } }
action count
action less
action find_tuple_counts
relation part of
type natural region of Germany
type designation for an administrative territorial entity
action count
action filter_type
action find
entity canton of France (until 2015)
relation part of
type natural region of Germany
[{'concept': 'designation for an administrative territorial entity'}, 'part of', {'concept': 'natural region of Germany'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?h ) WHERE { ?l property:part_of ?f . ?l rdf:type ontology:natural_region_of_Germany . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?h < ?d ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:canton_of_France_(until_2015) property:part_of ?k . ?k rdf:type ontology:natural_region_of_Germany } } }
[]
natural region of Germany designation for an administrative territorial entity
SYSTEM
0
(c(Q15617994),P361,c(Q553036))
action count
action less
action find_tuple_counts
relation P361
type Q553036
type Q15617994
action count
action filter_type
action find
entity Q184188
relation P361
type Q553036
[ANSWER]
[{'concept': 'Q15617994'}, 'P361', {'concept': 'Q553036'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?h ) WHERE { ?l property:P361 ?f . ?l rdf:type ontology:Q553036 . ?f rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?h < ?d ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q184188 property:P361 ?k . ?k rdf:type ontology:Q553036 } } }
0
action count
action less
action find_tuple_counts
relation part of
type natural region of Germany
type designation for an administrative territorial entity
action count
action filter_type
action find
entity canton of France (until 2015)
relation part of
type natural region of Germany
[{'concept': 'designation for an administrative territorial entity'}, 'part of', {'concept': 'natural region of Germany'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?h ) WHERE { ?l property:part_of ?f . ?l rdf:type ontology:natural_region_of_Germany . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?h < ?d ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:canton_of_France_(until_2015) property:part_of ?k . ?k rdf:type ontology:natural_region_of_Germany } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184188
P17
Q15617994
USER
Which administrative territory does canton of France (until 2015) belong to ?
(Q184188,P17,c(Q15617994))
action filter_type
action find
entity Q184188
relation P17
type Q15617994
['Q184188', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q184188 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
canton of France (until 2015)
action filter_type
action find
entity canton of France (until 2015)
relation country
type designation for an administrative territorial entity
['canton of France (until 2015)', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:canton_of_France_(until_2015) property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q184188,P17,c(Q15617994))
action filter_type
action find
entity Q184188
relation P17
type Q15617994
[ANSWER] canton of [ANSWER] (until 2015) belongs to
['Q184188', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q184188 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
France
France canton of France (until 2015) belongs to
France
action filter_type
action find
entity canton of France (until 2015)
relation country
type designation for an administrative territorial entity
['canton of France (until 2015)', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:canton_of_France_(until_2015) property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P127
Q811430
USER
Which constructions are owned by that administrative territory ?
(c(Q811430),P127,Q142)
action filter_type
action find_reverse
entity Q142
relation P127
type Q811430
[{'concept': 'Q811430'}, 'P127', 'Q142']
SELECT DISTINCT ?l WHERE { ?l property:P127 resource:Q142 . ?l rdf:type ontology:Q811430 }
France
action filter_type
action find_reverse
entity France
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'France']
SELECT DISTINCT ?l WHERE { ?l property:owned_by resource:France . ?l rdf:type ontology:construction }
[]
construction
Q578060 Q913330
SYSTEM
Longwood House, Briars, Saint Helena
Q578060 Q913330
(c(Q811430),P127,Q142)
action filter_type
action find_reverse
entity Q142
relation P127
type Q811430
[ANSWERS]
[{'concept': 'Q811430'}, 'P127', 'Q142']
SELECT DISTINCT ?l WHERE { ?l property:P127 resource:Q142 . ?l rdf:type ontology:Q811430 }
Longwood House Briars, Saint Helena
Longwood House and Briars, Saint Helena are owned by that administrative territory
Longwood House Briars, Saint Helena
action filter_type
action find_reverse
entity France
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'France']
SELECT DISTINCT ?l WHERE { ?l property:owned_by resource:France . ?l rdf:type ontology:construction }
[]
Clarification
Simple Question|Single Entity|Indirect
Q578060
P20
Q502895
USER
Which person expired at that construction ?
(c(Q502895),P20,Q578060)
action filter_type
action find_reverse
entity Q578060
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q578060']
SELECT DISTINCT ?p WHERE { ?p property:P20 resource:Q578060 . ?p rdf:type ontology:Q502895 }
Longwood House
action filter_type
action find_reverse
entity Longwood House
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Longwood House']
SELECT DISTINCT ?p WHERE { ?p property:place_of_death resource:Longwood_House . ?p rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q578060
SYSTEM
Did you mean Longwood House ?
Q578060 Q913330
(c(Q502895),P20,Q578060) (c(Q502895),P20,Q913330)
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q578060'] [{'concept': 'Q502895'}, 'P20', 'Q913330']
SELECT DISTINCT ?p WHERE { ?p property:P20 resource:Q578060 . ?p rdf:type ontology:Q502895 }
Longwood House Briars, Saint Helena
Did you mean Longwood House ?
Longwood House
[{'concept': 'common name'}, 'place of death', 'Longwood House'] [{'concept': 'common name'}, 'place of death', 'Briars, Saint Helena']
SELECT DISTINCT ?p WHERE { ?p property:place_of_death resource:Longwood_House . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P20,Q578060)
[{'concept': 'Q502895'}, 'P20', 'Q578060']
[{'concept': 'common name'}, 'place of death', 'Longwood House']
[]
Q517
SYSTEM
Napoleon
Q517
(c(Q502895),P20,Q578060)
action filter_type
action find_reverse
entity Q578060
relation P20
type Q502895
The [ANSWER] expired at that construction
[{'concept': 'Q502895'}, 'P20', 'Q578060']
SELECT DISTINCT ?p WHERE { ?p property:P20 resource:Q578060 . ?p rdf:type ontology:Q502895 }
Napoleon
The Napoleon expired at that construction
Napoleon
action filter_type
action find_reverse
entity Longwood House
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Longwood House']
SELECT DISTINCT ?p WHERE { ?p property:place_of_death resource:Longwood_House . ?p rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q483994
P1303
Q34379 Q502895
USER
Which musical instruments are played by more number of people than Kazoo ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q483994
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:P1303 ?v . ?n rdf:type ontology:Q502895 . ?v rdf:type ontology:Q34379 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Q483994 property:P1303 ?p . ?p rdf:type ontology:Q34379 } } . FILTER ( ?u > ?d ) }
Kazoo
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Kazoo
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:instrument ?v . ?n rdf:type ontology:common_name . ?v rdf:type ontology:musical_instrument } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Kazoo property:instrument ?p . ?p rdf:type ontology:musical_instrument } } . FILTER ( ?u > ?d ) }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q483994
relation P1303
type Q34379
[ANSWERS] are played by more number of people than Kazoo
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:P1303 ?v . ?n rdf:type ontology:Q502895 . ?v rdf:type ontology:Q34379 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Q483994 property:P1303 ?p . ?p rdf:type ontology:Q34379 } } . FILTER ( ?u > ?d ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
Piano, harpsichord and viola are played by more number of people than Kazoo
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Kazoo
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:instrument ?v . ?n rdf:type ontology:common_name . ?v rdf:type ontology:musical_instrument } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Kazoo property:instrument ?p . ?p rdf:type ontology:musical_instrument } } . FILTER ( ?u > ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q46185
P1303
Q34379 Q502895
USER
And also tell me about bass guitar?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q46185
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:Q46185 property:P1303 ?e . ?e rdf:type ontology:Q34379 } } . FILTER ( ?r > ?c ) . { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:P1303 ?a . ?v rdf:type ontology:Q502895 . ?a rdf:type ontology:Q34379 } GROUP BY ?a } }
bass guitar
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bass guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:bass_guitar property:instrument ?e . ?e rdf:type ontology:musical_instrument } } . FILTER ( ?r > ?c ) . { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:instrument ?a . ?v rdf:type ontology:common_name . ?a rdf:type ontology:musical_instrument } GROUP BY ?a } }
[]
musical instrument common name
Q5994 Q8338 Q8355
SYSTEM
piano, trumpet, violin
Q5994 Q8338 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q46185
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:Q46185 property:P1303 ?e . ?e rdf:type ontology:Q34379 } } . FILTER ( ?r > ?c ) . { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:P1303 ?a . ?v rdf:type ontology:Q502895 . ?a rdf:type ontology:Q34379 } GROUP BY ?a } }
piano trumpet violin organ drum kit
piano trumpet violin
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bass guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:bass_guitar property:instrument ?e . ?e rdf:type ontology:musical_instrument } } . FILTER ( ?r > ?c ) . { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:instrument ?a . ?v rdf:type ontology:common_name . ?a rdf:type ontology:musical_instrument } GROUP BY ?a } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q1267889 Q20667921
USER
How many french administrative divisions are situated in the neighbourhood of approximately 2 watercourses or waterways ?
(c(Q20667921),P206,c(Q355304)|c(Q1267889))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
value 2
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?w ) WHERE { VALUES ( ?r ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } . ?h rdf:type ?r } GROUP BY ?n } . FILTER ( ?w = 2 ) }
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
value 2
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?w ) WHERE { VALUES ( ?r ) { ( ontology:watercourse ) ( ontology:waterway ) } . ?h rdf:type ?r } GROUP BY ?n } . FILTER ( ?w = 2 ) }
[]
watercourse waterway type of french administrative division
SYSTEM
1
Q20892
(c(Q20667921),P206,c(Q355304)|c(Q1267889))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
value 2
[ANSWER]
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?w ) WHERE { VALUES ( ?r ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } . ?h rdf:type ?r } GROUP BY ?n } . FILTER ( ?w = 2 ) }
Le Mont-Saint-Michel
1
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
value 2
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?w ) WHERE { VALUES ( ?r ) { ( ontology:watercourse ) ( ontology:waterway ) } . ?h rdf:type ?r } GROUP BY ?n } . FILTER ( ?w = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q517
P50
Q2342494
USER
Which collectable has Napoleon as its author ?
(c(Q2342494),P50,Q517)
action filter_type
action find_reverse
entity Q517
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q517']
SELECT DISTINCT ?l WHERE { ?l property:P50 resource:Q517 . ?l rdf:type ontology:Q2342494 }
Napoleon
action filter_type
action find_reverse
entity Napoleon
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Napoleon']
SELECT DISTINCT ?l WHERE { ?l property:author resource:Napoleon . ?l rdf:type ontology:collectable }
[]
collectable
Q3224947
SYSTEM
The Memorial of Saint Helena
Q3224947
(c(Q2342494),P50,Q517)
action filter_type
action find_reverse
entity Q517
relation P50
type Q2342494
The [ANSWER] has Napoleon as its author
[{'concept': 'Q2342494'}, 'P50', 'Q517']
SELECT DISTINCT ?l WHERE { ?l property:P50 resource:Q517 . ?l rdf:type ontology:Q2342494 }
The Memorial of Saint Helena
The The Memorial of Saint Helena has Napoleon as its author
The Memorial of Saint Helena
action filter_type
action find_reverse
entity Napoleon
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Napoleon']
SELECT DISTINCT ?l WHERE { ?l property:author resource:Napoleon . ?l rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3224947
P98
Q502895
USER
Who served as a compiler for that collectable ?
(Q3224947,P98,c(Q502895))
action filter_type
action find
entity Q3224947
relation P98
type Q502895
['Q3224947', 'P98', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q3224947 property:P98 ?z . ?z rdf:type ontology:Q502895 }
The Memorial of Saint Helena
action filter_type
action find
entity The Memorial of Saint Helena
relation editor
type common name
['The Memorial of Saint Helena', 'editor', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:The_Memorial_of_Saint_Helena property:editor ?z . ?z rdf:type ontology:common_name }
[]
common name
Q585856
SYSTEM
Emmanuel, comte de Las Cases
Q585856
(Q3224947,P98,c(Q502895))
action filter_type
action find
entity Q3224947
relation P98
type Q502895
[ANSWER] served as a compiler for that collectable
['Q3224947', 'P98', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q3224947 property:P98 ?z . ?z rdf:type ontology:Q502895 }
Emmanuel, comte de Las Cases
Emmanuel, comte de Las Cases served as a compiler for that collectable
Emmanuel, comte de Las Cases
action filter_type
action find
entity The Memorial of Saint Helena
relation editor
type common name
['The Memorial of Saint Helena', 'editor', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:The_Memorial_of_Saint_Helena property:editor ?z . ?z rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2641812 Q658007
P495 P17
Q15617994
USER
Which administrative territories are canton of Clamecy a part of and did The Burglars originate ?
AND((Q658007,P17,c(Q15617994)), (Q2641812,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q658007
relation P17
action find
entity Q2641812
relation P495
type Q15617994
{'AND': [['Q658007', 'P17', {'concept': 'Q15617994'}], ['Q2641812', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { resource:Q658007 property:P17 ?c . resource:Q2641812 property:P495 ?c . ?c rdf:type ontology:Q15617994 }
The Burglars canton of Clamecy
action filter_type
action intersection
action find
entity canton of Clamecy
relation country
action find
entity The Burglars
relation country of origin
type designation for an administrative territorial entity
{'AND': [['canton of Clamecy', 'country', {'concept': 'designation for an administrative territorial entity'}], ['The Burglars', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { resource:canton_of_Clamecy property:country ?c . resource:The_Burglars property:country_of_origin ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q658007,P17,c(Q15617994)), (Q2641812,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q658007
relation P17
action find
entity Q2641812
relation P495
type Q15617994
[ANSWER] is canton of Clamecy a part of and did The Burglars originate
{'AND': [['Q658007', 'P17', {'concept': 'Q15617994'}], ['Q2641812', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { resource:Q658007 property:P17 ?c . resource:Q2641812 property:P495 ?c . ?c rdf:type ontology:Q15617994 }
France
France is canton of Clamecy a part of and did The Burglars originate
France
action filter_type
action intersection
action find
entity canton of Clamecy
relation country
action find
entity The Burglars
relation country of origin
type designation for an administrative territorial entity
{'AND': [['canton of Clamecy', 'country', {'concept': 'designation for an administrative territorial entity'}], ['The Burglars', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { resource:canton_of_Clamecy property:country ?c . resource:The_Burglars property:country_of_origin ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]