Simple Question (Direct)
Simple Question
Q328309
P1376
Q20667921
USER
Which french administrative division has Bar-sur-Seine as its capital ?
(Q328309,P1376,c(Q20667921))
action filter_type
action find
entity Q328309
relation P1376
type Q20667921
['Q328309', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?c WHERE { resource:Q328309 property:P1376 ?c . ?c rdf:type ontology:Q20667921 }
Bar-sur-Seine
action filter_type
action find
entity Bar-sur-Seine
relation capital of
type type of french administrative division
['Bar-sur-Seine', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?c WHERE { resource:Bar-sur-Seine property:capital_of ?c . ?c rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q972703
SYSTEM
canton of Bar-sur-Seine
Q972703
(Q328309,P1376,c(Q20667921))
action filter_type
action find
entity Q328309
relation P1376
type Q20667921
The [ANSWER] has Bar-sur-Seine as its capital
['Q328309', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?c WHERE { resource:Q328309 property:P1376 ?c . ?c rdf:type ontology:Q20667921 }
canton of Bar-sur-Seine
The canton of Bar-sur-Seine has Bar-sur-Seine as its capital
canton of Bar-sur-Seine
action filter_type
action find
entity Bar-sur-Seine
relation capital of
type type of french administrative division
['Bar-sur-Seine', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?c WHERE { resource:Bar-sur-Seine property:capital_of ?c . ?c rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q972703
P36
Q20667921
USER
Which french administrative division is known as the capital of that one ?
(Q972703,P36,c(Q20667921))
action filter_type
action find
entity Q972703
relation P36
type Q20667921
['Q972703', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q972703 property:P36 ?l . ?l rdf:type ontology:Q20667921 }
canton of Bar-sur-Seine
action filter_type
action find
entity canton of Bar-sur-Seine
relation capital
type type of french administrative division
['canton of Bar-sur-Seine', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:canton_of_Bar-sur-Seine property:capital ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q328309
SYSTEM
Bar-sur-Seine
Q328309
(Q972703,P36,c(Q20667921))
action filter_type
action find
entity Q972703
relation P36
type Q20667921
[ANSWER] is known as the capital of that one
['Q972703', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q972703 property:P36 ?l . ?l rdf:type ontology:Q20667921 }
Bar-sur-Seine
Bar-sur-Seine is known as the capital of that one
Bar-sur-Seine
action filter_type
action find
entity canton of Bar-sur-Seine
relation capital
type type of french administrative division
['canton of Bar-sur-Seine', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:canton_of_Bar-sur-Seine property:capital ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q328309
P20
Q502895
USER
Who died in that french administrative division ?
(c(Q502895),P20,Q328309)
action filter_type
action find_reverse
entity Q328309
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q328309']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q328309 . ?q rdf:type ontology:Q502895 }
Bar-sur-Seine
action filter_type
action find_reverse
entity Bar-sur-Seine
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Bar-sur-Seine']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:Bar-sur-Seine . ?q rdf:type ontology:common_name }
[]
common name
Q23811233
SYSTEM
Nicolas Louis Legouest
Q23811233
(c(Q502895),P20,Q328309)
action filter_type
action find_reverse
entity Q328309
relation P20
type Q502895
[ANSWER] died in that french administrative division
[{'concept': 'Q502895'}, 'P20', 'Q328309']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q328309 . ?q rdf:type ontology:Q502895 }
Nicolas Louis Legouest
Nicolas Louis Legouest died in that french administrative division
Nicolas Louis Legouest
action filter_type
action find_reverse
entity Bar-sur-Seine
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Bar-sur-Seine']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:Bar-sur-Seine . ?q rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q23811233 Q629886
P27
Q15617994
USER
Is Nicolas Louis Legouest a civilian of Herzlake ?
(Q23811233,P27,Q629886)
action is_in
entity Q629886
action find
entity Q23811233
relation P27
['Q23811233', 'P27', 'Q629886']
ASK WHERE { resource:Q23811233 property:P27 resource:Q629886 }
Nicolas Louis Legouest Herzlake
action is_in
entity Herzlake
action find
entity Nicolas Louis Legouest
relation country of citizenship
['Nicolas Louis Legouest', 'country of citizenship', 'Herzlake']
ASK WHERE { resource:Nicolas_Louis_Legouest property:country_of_citizenship resource:Herzlake }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q23811233,P27,Q629886)
action is_in
entity Q629886
action find
entity Q23811233
relation P27
[ANSWER]
['Q23811233', 'P27', 'Q629886']
ASK WHERE { resource:Q23811233 property:P27 resource:Q629886 }
No
action is_in
entity Herzlake
action find
entity Nicolas Louis Legouest
relation country of citizenship
['Nicolas Louis Legouest', 'country of citizenship', 'Herzlake']
ASK WHERE { resource:Nicolas_Louis_Legouest property:country_of_citizenship resource:Herzlake }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do atleast 1244 people know to play ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1244
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:P1303 ?h . ?h rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?d >= 1244 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1244
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:instrument ?h . ?h rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?d >= 1244 ) }
[]
musical instrument common name
Q5994 Q46185 Q8338
SYSTEM
piano, bass guitar, trumpet
Q46185 Q5994 Q8338 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1244
Atleast 1244 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:P1303 ?h . ?h rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?d >= 1244 ) }
bass guitar piano trumpet violin organ drum kit
Atleast 1244 people know about piano, bass guitar and trumpet
piano bass guitar trumpet
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1244
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:instrument ?h . ?h rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?d >= 1244 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q5994 Q46185 Q8338
P425
Q12737077
USER
Which occupations do piano, bass guitar and trumpet belong to ?
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q46185) (c(Q12737077),P425,Q8338)
action union
action filter_type
action find_reverse
entity Q5994
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q46185
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q8338
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q46185'] [{'concept': 'Q12737077'}, 'P425', 'Q8338']
SELECT DISTINCT ?j WHERE { VALUES ( ?w ) { ( resource:Q46185 ) ( resource:Q5994 ) } . ?j property:P425 ?w }
piano bass guitar trumpet
action union
action filter_type
action find_reverse
entity piano
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity bass guitar
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity trumpet
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'bass guitar'] [{'concept': 'occupation'}, 'field of this occupation', 'trumpet']
SELECT DISTINCT ?j WHERE { VALUES ( ?w ) { ( resource:bass_guitar ) ( resource:piano ) } . ?j property:field_of_this_occupation ?w }
[]
occupation
Q17093672 Q885122 Q21504978
SYSTEM
trumpeter, piano maker, bass-guitarist
Q486748 Q885122 Q21504978 Q17093672
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q46185) (c(Q12737077),P425,Q8338)
action union
action filter_type
action find_reverse
entity Q5994
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q46185
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q8338
relation P425
type Q12737077
Piano , bass guitar and trumpet belong to the [ANSWERS]
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q46185'] [{'concept': 'Q12737077'}, 'P425', 'Q8338']
SELECT DISTINCT ?j WHERE { VALUES ( ?w ) { ( resource:Q46185 ) ( resource:Q5994 ) } . ?j property:P425 ?w }
pianist piano maker bass-guitarist trumpeter
Piano , bass guitar and trumpet belong to the trumpeter, piano maker and bass-guitarist
trumpeter piano maker bass-guitarist
action union
action filter_type
action find_reverse
entity piano
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity bass guitar
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity trumpet
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'bass guitar'] [{'concept': 'occupation'}, 'field of this occupation', 'trumpet']
SELECT DISTINCT ?j WHERE { VALUES ( ?w ) { ( resource:bass_guitar ) ( resource:piano ) } . ?j property:field_of_this_occupation ?w }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q17093672 Q885122 Q21504978
P425
Q34379
USER
Who are associated with the field of occupation trumpeter, piano maker and bass-guitarist ?
(Q17093672,P425,c(Q34379)) (Q885122,P425,c(Q34379)) (Q21504978,P425,c(Q34379))
action union
action filter_type
action find
entity Q17093672
relation P425
type Q34379
action filter_type
action find
entity Q885122
relation P425
type Q34379
action filter_type
action find
entity Q21504978
relation P425
type Q34379
['Q17093672', 'P425', {'concept': 'Q34379'}] ['Q885122', 'P425', {'concept': 'Q34379'}] ['Q21504978', 'P425', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { resource:Q17093672 property:P425 ?o . ?o rdf:type ontology:Q34379 } UNION { resource:Q885122 property:P425 ?o . ?o rdf:type ontology:Q34379 } }
trumpeter piano maker bass-guitarist
action union
action filter_type
action find
entity trumpeter
relation field of this occupation
type musical instrument
action filter_type
action find
entity piano maker
relation field of this occupation
type musical instrument
action filter_type
action find
entity bass-guitarist
relation field of this occupation
type musical instrument
['trumpeter', 'field of this occupation', {'concept': 'musical instrument'}] ['piano maker', 'field of this occupation', {'concept': 'musical instrument'}] ['bass-guitarist', 'field of this occupation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { resource:trumpeter property:field_of_this_occupation ?o . ?o rdf:type ontology:musical_instrument } UNION { resource:piano_maker property:field_of_this_occupation ?o . ?o rdf:type ontology:musical_instrument } }
[]
musical instrument
Q8338 Q5994 Q46185
SYSTEM
trumpet, piano, bass guitar
Q8338 Q5994 Q46185
(Q17093672,P425,c(Q34379)) (Q885122,P425,c(Q34379)) (Q21504978,P425,c(Q34379))
action union
action filter_type
action find
entity Q17093672
relation P425
type Q34379
action filter_type
action find
entity Q885122
relation P425
type Q34379
action filter_type
action find
entity Q21504978
relation P425
type Q34379
[ANSWERS] are associated with the field of occupation trumpeter, piano maker and bass-guitarist
['Q17093672', 'P425', {'concept': 'Q34379'}] ['Q885122', 'P425', {'concept': 'Q34379'}] ['Q21504978', 'P425', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { resource:Q17093672 property:P425 ?o . ?o rdf:type ontology:Q34379 } UNION { resource:Q885122 property:P425 ?o . ?o rdf:type ontology:Q34379 } }
trumpet piano bass guitar
Trumpet, piano and bass guitar are associated with the field of occupation trumpeter, piano maker and bass-guitarist
trumpet piano bass guitar
action union
action filter_type
action find
entity trumpeter
relation field of this occupation
type musical instrument
action filter_type
action find
entity piano maker
relation field of this occupation
type musical instrument
action filter_type
action find
entity bass-guitarist
relation field of this occupation
type musical instrument
['trumpeter', 'field of this occupation', {'concept': 'musical instrument'}] ['piano maker', 'field of this occupation', {'concept': 'musical instrument'}] ['bass-guitarist', 'field of this occupation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { resource:trumpeter property:field_of_this_occupation ?o . ?o rdf:type ontology:musical_instrument } UNION { resource:piano_maker property:field_of_this_occupation ?o . ?o rdf:type ontology:musical_instrument } }
[]