Simple Question (Direct)
Simple Question
Q862590
P47
Q20667921
USER
Who share the border with Jort ?
(Q862590,P47,c(Q20667921))
action filter_type
action find
entity Q862590
relation P47
type Q20667921
['Q862590', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { resource:Q862590 property:P47 ?x . ?x rdf:type ontology:Q20667921 }
Jort
action filter_type
action find
entity Jort
relation shares border with
type type of french administrative division
['Jort', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { resource:Jort property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q366415 Q862934 Q766245
SYSTEM
Vendeuvre, Louvagny, Perrières
Q862934 Q848529 Q366415 Q387430 Q766245 Q858719
(Q862590,P47,c(Q20667921))
action filter_type
action find
entity Q862590
relation P47
type Q20667921
[ANSWERS] share the border with Jort
['Q862590', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { resource:Q862590 property:P47 ?x . ?x rdf:type ontology:Q20667921 }
Louvagny Courcy Vendeuvre Vicques Perrières Bernières-d'Ailly
Vendeuvre, Louvagny and Perrières share the border with Jort
Vendeuvre Louvagny Perrières
action filter_type
action find
entity Jort
relation shares border with
type type of french administrative division
['Jort', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { resource:Jort property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q862934
P17
Q15617994
USER
Which administrative territory is that french administrative division present in ?
(Q862934,P17,c(Q15617994))
action filter_type
action find
entity Q862934
relation P17
type Q15617994
['Q862934', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q862934 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Louvagny
action filter_type
action find
entity Louvagny
relation country
type designation for an administrative territorial entity
['Louvagny', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Louvagny property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q862934
SYSTEM
Did you mean Louvagny ?
Q366415 Q862934 Q766245
(Q366415,P17,c(Q15617994)) (Q862934,P17,c(Q15617994)) (Q766245,P17,c(Q15617994))
[ANSWER]
['Q366415', 'P17', {'concept': 'Q15617994'}] ['Q862934', 'P17', {'concept': 'Q15617994'}] ['Q766245', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q862934 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Vendeuvre Louvagny Perrières
Did you mean Louvagny ?
Louvagny
['Vendeuvre', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Louvagny', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Perrières', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Louvagny property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q862934,P17,c(Q15617994))
['Q862934', 'P17', {'concept': 'Q15617994'}]
['Louvagny', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q862934,P17,c(Q15617994))
action filter_type
action find
entity Q862934
relation P17
type Q15617994
That french administrative division is in [ANSWER]
['Q862934', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q862934 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
France
That french administrative division is in France
France
action filter_type
action find
entity Louvagny
relation country
type designation for an administrative territorial entity
['Louvagny', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Louvagny property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P159
Q20667921 Q4830453 Q895526
USER
Which french administrative divisions are the headquarter locations of max number of business enterprises or authority organs ?
(c(Q4830453)|c(Q895526),P159,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q895526
[[{'concept': 'Q4830453'}, {'concept': 'Q895526'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?s = ?d ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?y WHERE { VALUES ( ?t ) { ( ontology:Q4830453 ) ( ontology:Q895526 ) } . ?k rdf:type ?t } GROUP BY ?y } . { SELECT DISTINCT ( MAX ( ?g ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?b WHERE { { ?w property:P159 ?b . ?w rdf:type ontology:Q895526 . ?b rdf:type ontology:Q20667921 } UNION { ?w property:P159 ?b . ?b rdf:type ontology:Q20667921 . ?w rdf:type ontology:Q4830453 } } GROUP BY ?b } } }
action argmax
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type authority organ
[[{'concept': 'business enterprise'}, {'concept': 'authority organ'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?s = ?d ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?y WHERE { VALUES ( ?t ) { ( ontology:business_enterprise ) ( ontology:authority_organ ) } . ?k rdf:type ?t } GROUP BY ?y } . { SELECT DISTINCT ( MAX ( ?g ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?b WHERE { { ?w property:headquarters_location ?b . ?w rdf:type ontology:authority_organ . ?b rdf:type ontology:type_of_french_administrative_division } UNION { ?w property:headquarters_location ?b . ?b rdf:type ontology:type_of_french_administrative_division . ?w rdf:type ontology:business_enterprise } } GROUP BY ?b } } }
[]
type of french administrative division business enterprise authority organ
Q189715
SYSTEM
Courbevoie
Q189715
(c(Q4830453)|c(Q895526),P159,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q895526
[ANSWER] is the headquarter locations of max number of business enterprises or authority organs
[[{'concept': 'Q4830453'}, {'concept': 'Q895526'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?s = ?d ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?y WHERE { VALUES ( ?t ) { ( ontology:Q4830453 ) ( ontology:Q895526 ) } . ?k rdf:type ?t } GROUP BY ?y } . { SELECT DISTINCT ( MAX ( ?g ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?b WHERE { { ?w property:P159 ?b . ?w rdf:type ontology:Q895526 . ?b rdf:type ontology:Q20667921 } UNION { ?w property:P159 ?b . ?b rdf:type ontology:Q20667921 . ?w rdf:type ontology:Q4830453 } } GROUP BY ?b } } }
Courbevoie
Courbevoie is the headquarter locations of max number of business enterprises or authority organs
Courbevoie
action argmax
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type authority organ
[[{'concept': 'business enterprise'}, {'concept': 'authority organ'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?s = ?d ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?y WHERE { VALUES ( ?t ) { ( ontology:business_enterprise ) ( ontology:authority_organ ) } . ?k rdf:type ?t } GROUP BY ?y } . { SELECT DISTINCT ( MAX ( ?g ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?b WHERE { { ?w property:headquarters_location ?b . ?w rdf:type ontology:authority_organ . ?b rdf:type ontology:type_of_french_administrative_division } UNION { ?w property:headquarters_location ?b . ?b rdf:type ontology:type_of_french_administrative_division . ?w rdf:type ontology:business_enterprise } } GROUP BY ?b } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q258
P530
Q1048835
USER
How many political territories have diplomatic associations with France and South Africa ?
(c(Q1048835),P530,Q142) (c(Q1048835),P530,Q258)
action count
action intersection
action filter_type
action find_reverse
entity Q142
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q258
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q142'] [{'concept': 'Q1048835'}, 'P530', 'Q258']
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { ?v property:P530 resource:Q142 . ?v rdf:type ontology:Q1048835 . ?v property:P530 resource:Q258 . ?v rdf:type ontology:Q1048835 }
France South Africa
action count
action intersection
action filter_type
action find_reverse
entity France
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity South Africa
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'France'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'South Africa']
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { ?v property:diplomatic_relation resource:France . ?v rdf:type ontology:political_territorial_entity . ?v property:diplomatic_relation resource:South_Africa . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q142) (c(Q1048835),P530,Q258)
action count
action intersection
action filter_type
action find_reverse
entity Q142
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q258
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q142'] [{'concept': 'Q1048835'}, 'P530', 'Q258']
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { ?v property:P530 resource:Q142 . ?v rdf:type ontology:Q1048835 . ?v property:P530 resource:Q258 . ?v rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity France
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity South Africa
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'France'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'South Africa']
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { ?v property:diplomatic_relation resource:France . ?v rdf:type ontology:political_territorial_entity . ?v property:diplomatic_relation resource:South_Africa . ?v rdf:type ontology:political_territorial_entity }
[]