Simple Question (Direct)
Simple Question
Q900479
P6
Q502895
USER
Which person does Noisiel serve as the head of government for ?
(Q900479,P6,c(Q502895))
action filter_type
action find
entity Q900479
relation P6
type Q502895
['Q900479', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q900479 property:P6 ?z . ?z rdf:type ontology:Q502895 }
Noisiel
action filter_type
action find
entity Noisiel
relation head of government
type common name
['Noisiel', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Noisiel property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
common name
Q3014769
SYSTEM
Daniel Vachez
Q3014769
(Q900479,P6,c(Q502895))
action filter_type
action find
entity Q900479
relation P6
type Q502895
[ANSWER] Noisiel serves as the head of government
['Q900479', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q900479 property:P6 ?z . ?z rdf:type ontology:Q502895 }
Daniel Vachez
Daniel Vachez Noisiel serves as the head of government
Daniel Vachez
action filter_type
action find
entity Noisiel
relation head of government
type common name
['Noisiel', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Noisiel property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q900479
P159
Q43229
USER
Which organization has headquarters located at that french administrative division ?
(c(Q43229),P159,Q3014769)
action filter_type
action find_reverse
entity Q900479
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q3014769']
SELECT DISTINCT ?m WHERE { ?m property:P159 resource:Q900479 . ?m rdf:type ontology:Q43229 }
Noisiel
action filter_type
action find_reverse
entity Noisiel
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Daniel Vachez']
SELECT DISTINCT ?m WHERE { ?m property:headquarters_location resource:Noisiel . ?m rdf:type ontology:organization }
[]
organization
Q2501390
SYSTEM
Ursa
Q2501390
(c(Q43229),P159,Q3014769)
action filter_type
action find_reverse
entity Q900479
relation P159
type Q43229
[ANSWER] has headquarters located at that french administrative division
[{'concept': 'Q43229'}, 'P159', 'Q3014769']
SELECT DISTINCT ?m WHERE { ?m property:P159 resource:Q900479 . ?m rdf:type ontology:Q43229 }
Ursa
Ursa has headquarters located at that french administrative division
Ursa
action filter_type
action find_reverse
entity Noisiel
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Daniel Vachez']
SELECT DISTINCT ?m WHERE { ?m property:headquarters_location resource:Noisiel . ?m rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1011437 Q900479
P36
Q20667921
USER
Which french administrative divisions are Noisiel or Sainte-Alvère the capital of ?
OR((c(Q20667921),P36,Q900479), (c(Q20667921),P36,Q1011437))
action filter_type
action union
action find_reverse
entity Q900479
relation P36
action find_reverse
entity Q1011437
relation P36
type Q20667921
{'OR': [[{'concept': 'Q20667921'}, 'P36', 'Q900479'], [{'concept': 'Q20667921'}, 'P36', 'Q1011437']]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?m ) { ( resource:Q900479 ) ( resource:Q1011437 ) } . ?q property:P36 ?m } . ?q rdf:type ontology:Q20667921 }
Sainte-Alvère Noisiel
action filter_type
action union
action find_reverse
entity Noisiel
relation capital
action find_reverse
entity Sainte-Alvère
relation capital
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'capital', 'Noisiel'], [{'concept': 'type of french administrative division'}, 'capital', 'Sainte-Alvère']]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?m ) { ( resource:Noisiel ) ( resource:Sainte-Alvère ) } . ?q property:capital ?m } . ?q rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q783254 Q959706
SYSTEM
canton of Noisiel, canton of Sainte-Alvère
Q783254 Q959706
OR((c(Q20667921),P36,Q900479), (c(Q20667921),P36,Q1011437))
action filter_type
action union
action find_reverse
entity Q900479
relation P36
action find_reverse
entity Q1011437
relation P36
type Q20667921
The [ANSWERS] are Noisiel or Sainte-Alvère the capital of
{'OR': [[{'concept': 'Q20667921'}, 'P36', 'Q900479'], [{'concept': 'Q20667921'}, 'P36', 'Q1011437']]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?m ) { ( resource:Q900479 ) ( resource:Q1011437 ) } . ?q property:P36 ?m } . ?q rdf:type ontology:Q20667921 }
canton of Noisiel canton of Sainte-Alvère
The canton of Noisiel and canton of Sainte-Alvère are Noisiel or Sainte-Alvère the capital of
canton of Noisiel canton of Sainte-Alvère
action filter_type
action union
action find_reverse
entity Noisiel
relation capital
action find_reverse
entity Sainte-Alvère
relation capital
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'capital', 'Noisiel'], [{'concept': 'type of french administrative division'}, 'capital', 'Sainte-Alvère']]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?m ) { ( resource:Noisiel ) ( resource:Sainte-Alvère ) } . ?q property:capital ?m } . ?q rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q900479
P1376
Q20667921
USER
Which french administrative division has Noisiel has its first city ?
(Q900479,P1376,c(Q20667921))
action filter_type
action find
entity Q900479
relation P1376
type Q20667921
['Q900479', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q900479 property:P1376 ?b . ?b rdf:type ontology:Q20667921 }
Noisiel
action filter_type
action find
entity Noisiel
relation capital of
type type of french administrative division
['Noisiel', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Noisiel property:capital_of ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q783254
SYSTEM
canton of Noisiel
Q783254
(Q900479,P1376,c(Q20667921))
action filter_type
action find
entity Q900479
relation P1376
type Q20667921
[ANSWER] has Noisiel has its first city
['Q900479', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q900479 property:P1376 ?b . ?b rdf:type ontology:Q20667921 }
canton of Noisiel
Canton of Noisiel has Noisiel has its first city
canton of Noisiel
action filter_type
action find
entity Noisiel
relation capital of
type type of french administrative division
['Noisiel', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Noisiel property:capital_of ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q184359
Q20667921
USER
And also tell me about Le Puy-en-Velay?
(Q184359,P1376,c(Q20667921))
action filter_type
action find
entity Q184359
relation P1376
type Q20667921
['Q184359', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?s WHERE { resource:Q184359 property:P1376 ?s . ?s rdf:type ontology:Q20667921 }
Le Puy-en-Velay
action filter_type
action find
entity Le Puy-en-Velay
relation capital of
type type of french administrative division
['Le Puy-en-Velay', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?s WHERE { resource:Le_Puy-en-Velay property:capital_of ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q248847 Q248674 Q248854
SYSTEM
canton of Le Puy-en-Velay-Ouest, canton of Le Puy-en-Velay-Nord, canton of Le Puy-en-Velay-Sud-Ouest
Q248847 Q248674 Q248854 Q248139 Q249171
(Q184359,P1376,c(Q20667921))
action filter_type
action find
entity Q184359
relation P1376
type Q20667921
[ANSWERS]
['Q184359', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?s WHERE { resource:Q184359 property:P1376 ?s . ?s rdf:type ontology:Q20667921 }
canton of Le Puy-en-Velay-Ouest canton of Le Puy-en-Velay-Nord canton of Le Puy-en-Velay-Sud-Ouest canton of Le Puy-en-Velay-Est canton of Le Puy-en-Velay-Sud-Est
canton of Le Puy-en-Velay-Ouest canton of Le Puy-en-Velay-Nord canton of Le Puy-en-Velay-Sud-Ouest
action filter_type
action find
entity Le Puy-en-Velay
relation capital of
type type of french administrative division
['Le Puy-en-Velay', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?s WHERE { resource:Le_Puy-en-Velay property:capital_of ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q248847 Q248674 Q248854
P1376
Q20667921
USER
Which french administrative divisions are the capital of those ones ?
(c(Q20667921),P1376,Q248847) (c(Q20667921),P1376,Q248674) (c(Q20667921),P1376,Q248854)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q20667921
[{'concept': 'Q20667921'}, 'P1376', 'Q248847'] [{'concept': 'Q20667921'}, 'P1376', 'Q248674'] [{'concept': 'Q20667921'}, 'P1376', 'Q248854']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q20667921 . ?u property:P1376 ?s . VALUES ( ?s ) { ( resource:Q248847 ) ( resource:Q248674 ) ( resource:Q248854 ) } }
canton of Le Puy-en-Velay-Ouest canton of Le Puy-en-Velay-Nord canton of Le Puy-en-Velay-Sud-Ouest
action filter_type
action find_reverse
entity prev_answer
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Le Puy-en-Velay-Ouest'] [{'concept': 'type of french administrative division'}, 'capital of', 'canton of Le Puy-en-Velay-Nord'] [{'concept': 'type of french administrative division'}, 'capital of', 'canton of Le Puy-en-Velay-Sud-Ouest']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:type_of_french_administrative_division . ?u property:capital_of ?s . VALUES ( ?s ) { ( resource:canton_of_Le_Puy-en-Velay-Ouest ) ( resource:canton_of_Le_Puy-en-Velay-Nord ) ( resource:canton_of_Le_Puy-en-Velay-Sud-Ouest ) } }
[]
type of french administrative division
Q184359
SYSTEM
Le Puy-en-Velay
Q184359
(c(Q20667921),P1376,Q248847) (c(Q20667921),P1376,Q248674) (c(Q20667921),P1376,Q248854)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q20667921
[ANSWER] is the capital of those ones
[{'concept': 'Q20667921'}, 'P1376', 'Q248847'] [{'concept': 'Q20667921'}, 'P1376', 'Q248674'] [{'concept': 'Q20667921'}, 'P1376', 'Q248854']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q20667921 . ?u property:P1376 ?s . VALUES ( ?s ) { ( resource:Q248847 ) ( resource:Q248674 ) ( resource:Q248854 ) } }
Le Puy-en-Velay
Le Puy-en-Velay is the capital of those ones
Le Puy-en-Velay
action filter_type
action find_reverse
entity prev_answer
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Le Puy-en-Velay-Ouest'] [{'concept': 'type of french administrative division'}, 'capital of', 'canton of Le Puy-en-Velay-Nord'] [{'concept': 'type of french administrative division'}, 'capital of', 'canton of Le Puy-en-Velay-Sud-Ouest']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:type_of_french_administrative_division . ?u property:capital_of ?s . VALUES ( ?s ) { ( resource:canton_of_Le_Puy-en-Velay-Ouest ) ( resource:canton_of_Le_Puy-en-Velay-Nord ) ( resource:canton_of_Le_Puy-en-Velay-Sud-Ouest ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q248847
P17
Q15617994
USER
Which administrative territory is canton of Le Puy-en-Velay-Ouest located in ?
(Q248847,P17,c(Q15617994))
action filter_type
action find
entity Q248847
relation P17
type Q15617994
['Q248847', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q248847 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
canton of Le Puy-en-Velay-Ouest
action filter_type
action find
entity canton of Le Puy-en-Velay-Ouest
relation country
type designation for an administrative territorial entity
['canton of Le Puy-en-Velay-Ouest', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:canton_of_Le_Puy-en-Velay-Ouest property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q248847,P17,c(Q15617994))
action filter_type
action find
entity Q248847
relation P17
type Q15617994
[ANSWER] is canton of Le Puy-en-Velay-Ouest located in
['Q248847', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q248847 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
France
France is canton of Le Puy-en-Velay-Ouest located in
France
action filter_type
action find
entity canton of Le Puy-en-Velay-Ouest
relation country
type designation for an administrative territorial entity
['canton of Le Puy-en-Velay-Ouest', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:canton_of_Le_Puy-en-Velay-Ouest property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with approximately 79 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 79
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?k property:P530 ?e . ?k rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?i = 79 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 79
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?k property:diplomatic_relation ?e . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?i = 79 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
2
Q38 Q230
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 79
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?k property:P530 ?e . ?k rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?i = 79 ) }
Italy Georgia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 79
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?k property:diplomatic_relation ?e . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?i = 79 ) }
[]