Simple Question (Direct)
Simple Question
Q16010496
P39
Q12737077
USER
Which occupation was a position held by Victor Plantevin ?
(Q16010496,P39,c(Q12737077))
action filter_type
action find
entity Q16010496
relation P39
type Q12737077
['Q16010496', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q16010496 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Victor Plantevin
action filter_type
action find
entity Victor Plantevin
relation position held
type occupation
['Victor Plantevin', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Victor_Plantevin property:position_held ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q16010496,P39,c(Q12737077))
action filter_type
action find
entity Q16010496
relation P39
type Q12737077
[ANSWER]
['Q16010496', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q16010496 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
member of the French National Assembly
member of the French National Assembly
action filter_type
action find
entity Victor Plantevin
relation position held
type occupation
['Victor Plantevin', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Victor_Plantevin property:position_held ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16010496
P19
Q20667921
USER
Which french administrative division is the place of birth of that person ?
(Q3044918,P19,c(Q20667921))
action filter_type
action find
entity Q16010496
relation P19
type Q20667921
['Q3044918', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q20667921 . resource:Q16010496 property:P19 ?x }
Victor Plantevin
action filter_type
action find
entity Victor Plantevin
relation place of birth
type type of french administrative division
['member of the French\xa0National Assembly', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:type_of_french_administrative_division . resource:Victor_Plantevin property:place_of_birth ?x }
[]
type of french administrative division
Q273919
SYSTEM
Burzet
Q273919
(Q3044918,P19,c(Q20667921))
action filter_type
action find
entity Q16010496
relation P19
type Q20667921
[ANSWER]
['Q3044918', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q20667921 . resource:Q16010496 property:P19 ?x }
Burzet
Burzet
action filter_type
action find
entity Victor Plantevin
relation place of birth
type type of french administrative division
['member of the French\xa0National Assembly', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:type_of_french_administrative_division . resource:Victor_Plantevin property:place_of_birth ?x }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q273919 Q176037 Q866786
P47
Q20667921
USER
Does Burzet have an adjacent border with canton of Mées and Saint-Pierre-de-Colombier ?
(Q273919,P47,Q176037) (Q273919,P47,Q866786)
action is_in
entity Q273919
action intersection
action find_reverse
entity Q176037
relation P47
action find_reverse
entity Q866786
relation P47
['Q273919', 'P47', 'Q176037'] ['Q273919', 'P47', 'Q866786']
ASK WHERE { resource:Q273919 property:P47 resource:Q176037 . resource:Q273919 property:P47 resource:Q866786 }
Burzet canton of Mées Saint-Pierre-de-Colombier
action is_in
entity Burzet
action intersection
action find_reverse
entity canton of Mées
relation shares border with
action find_reverse
entity Saint-Pierre-de-Colombier
relation shares border with
['Burzet', 'shares border with', 'canton of Mées'] ['Burzet', 'shares border with', 'Saint-Pierre-de-Colombier']
ASK WHERE { resource:Burzet property:shares_border_with resource:canton_of_Mées . resource:Burzet property:shares_border_with resource:Saint-Pierre-de-Colombier }
[]
type of french administrative division
SYSTEM
NO and YES respectively
(Q273919,P47,Q176037) (Q273919,P47,Q866786)
action is_in
entity Q273919
action intersection
action find_reverse
entity Q176037
relation P47
action find_reverse
entity Q866786
relation P47
[ANSWER]
['Q273919', 'P47', 'Q176037'] ['Q273919', 'P47', 'Q866786']
ASK WHERE { resource:Q273919 property:P47 resource:Q176037 . resource:Q273919 property:P47 resource:Q866786 }
NO and YES respectively
action is_in
entity Burzet
action intersection
action find_reverse
entity canton of Mées
relation shares border with
action find_reverse
entity Saint-Pierre-de-Colombier
relation shares border with
['Burzet', 'shares border with', 'canton of Mées'] ['Burzet', 'shares border with', 'Saint-Pierre-de-Colombier']
ASK WHERE { resource:Burzet property:shares_border_with resource:canton_of_Mées . resource:Burzet property:shares_border_with resource:Saint-Pierre-de-Colombier }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q732577 Q191067
USER
Which occupations were the main subjects of exactly 1 publications and articles 's work ?
(c(Q732577)|c(Q191067),P921,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 1
[[{'concept': 'Q732577'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?n WHERE { VALUES ( ?j ) { ( ontology:Q732577 ) ( ontology:Q191067 ) } . ?y rdf:type ?j } GROUP BY ?n } }
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 1
[[{'concept': 'publication'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?n WHERE { VALUES ( ?j ) { ( ontology:publication ) ( ontology:article ) } . ?y rdf:type ?j } GROUP BY ?n } }
[]
occupation publication article
Q316070 Q182436 Q3809586
SYSTEM
Fletcher Christian, librarian, Wikipedian in Residence
Q172907 Q3809586 Q2094335 Q316070 Q510373 Q152002 Q15320003 Q732358 Q182436
(c(Q732577)|c(Q191067),P921,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 1
[ANSWERS]
[[{'concept': 'Q732577'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?n WHERE { VALUES ( ?j ) { ( ontology:Q732577 ) ( ontology:Q191067 ) } . ?y rdf:type ?j } GROUP BY ?n } }
praetor Wikipedian in Residence United States Attorney Fletcher Christian Lord High Steward pastor migrant worker Nomarch librarian
Fletcher Christian librarian Wikipedian in Residence
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 1
[[{'concept': 'publication'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?n WHERE { VALUES ( ?j ) { ( ontology:publication ) ( ontology:article ) } . ?y rdf:type ?j } GROUP BY ?n } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q936775
P36
Q20667921
USER
Which french administrative division is called the capital of canton of Millau-Ouest ?
(Q936775,P36,c(Q20667921))
action filter_type
action find
entity Q936775
relation P36
type Q20667921
['Q936775', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q936775 property:P36 ?m . ?m rdf:type ontology:Q20667921 }
canton of Millau-Ouest
action filter_type
action find
entity canton of Millau-Ouest
relation capital
type type of french administrative division
['canton of Millau-Ouest', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:canton_of_Millau-Ouest property:capital ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q203278
SYSTEM
Millau
Q203278
(Q936775,P36,c(Q20667921))
action filter_type
action find
entity Q936775
relation P36
type Q20667921
[ANSWER]
['Q936775', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q936775 property:P36 ?m . ?m rdf:type ontology:Q20667921 }
Millau
Millau
action filter_type
action find
entity canton of Millau-Ouest
relation capital
type type of french administrative division
['canton of Millau-Ouest', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:canton_of_Millau-Ouest property:capital ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q662375
Q20667921
USER
And how about canton of Montbarrey?
(Q662375,P36,c(Q20667921))
action filter_type
action find
entity Q662375
relation P36
type Q20667921
['Q662375', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q20667921 . resource:Q662375 property:P36 ?a }
canton of Montbarrey
action filter_type
action find
entity canton of Montbarrey
relation capital
type type of french administrative division
['canton of Montbarrey', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:type_of_french_administrative_division . resource:canton_of_Montbarrey property:capital ?a }
[]
type of french administrative division
Q568008
SYSTEM
Montbarrey
Q568008
(Q662375,P36,c(Q20667921))
action filter_type
action find
entity Q662375
relation P36
type Q20667921
[ANSWER]
['Q662375', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q20667921 . resource:Q662375 property:P36 ?a }
Montbarrey
Montbarrey
action filter_type
action find
entity canton of Montbarrey
relation capital
type type of french administrative division
['canton of Montbarrey', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:type_of_french_administrative_division . resource:canton_of_Montbarrey property:capital ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P47
Q20667921
USER
How many french administrative divisions do that french administrative division share a border with ?
(c(Q20667921),P47,Q568008)
action count
action filter_type
action find_reverse
entity Q568008
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q568008']
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P47 resource:Q568008 . ?s rdf:type ontology:Q20667921 }
action count
action filter_type
action find_reverse
entity Montbarrey
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Montbarrey']
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:shares_border_with resource:Montbarrey . ?s rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
6
Q1218266 Q1226955 Q529880 Q615165 Q571168 Q405116
(c(Q20667921),P47,Q568008)
action count
action filter_type
action find_reverse
entity Q568008
relation P47
type Q20667921
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q568008']
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P47 resource:Q568008 . ?s rdf:type ontology:Q20667921 }
Belmont La Vieille-Loye Vaudrey Santans Ounans Mont-sous-Vaudrey
6
action count
action filter_type
action find_reverse
entity Montbarrey
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Montbarrey']
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:shares_border_with resource:Montbarrey . ?s rdf:type ontology:type_of_french_administrative_division }
[]