Simple Question (Direct)
Simple Question
Q1000
P36
Q56061
USER
Which administrative territory is associated to Gabon as the capital ?
(Q1000,P36,c(Q56061))
action filter_type
action find
entity Q1000
relation P36
type Q56061
['Q1000', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q1000 property:P36 ?s }
Gabon
action filter_type
action find
entity Gabon
relation capital
type administrative territorial entity
['Gabon', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Gabon property:capital ?s }
[]
administrative territorial entity
Q3825
SYSTEM
Libreville
Q3825
(Q1000,P36,c(Q56061))
action filter_type
action find
entity Q1000
relation P36
type Q56061
[ANSWER] is associated to Gabon as the capital
['Q1000', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q1000 property:P36 ?s }
Libreville
Libreville is associated to Gabon as the capital
Libreville
action filter_type
action find
entity Gabon
relation capital
type administrative territorial entity
['Gabon', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Gabon property:capital ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3825
P190
Q56061
USER
Which administrative territories are sister towns of that one ?
(Q3825,P190,c(Q56061))
action filter_type
action find
entity Q3825
relation P190
type Q56061
['Q3825', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q3825 property:P190 ?r . ?r rdf:type ontology:Q56061 }
Libreville
action filter_type
action find
entity Libreville
relation sister city
type administrative territorial entity
['Libreville', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Libreville property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q33959 Q5468
SYSTEM
Nice, Durban
Q33959 Q5468
(Q3825,P190,c(Q56061))
action filter_type
action find
entity Q3825
relation P190
type Q56061
[ANSWERS] are sister towns of that one
['Q3825', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q3825 property:P190 ?r . ?r rdf:type ontology:Q56061 }
Nice Durban
Nice and Durban are sister towns of that one
Nice Durban
action filter_type
action find
entity Libreville
relation sister city
type administrative territorial entity
['Libreville', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Libreville property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q56061 Q515
USER
How many administrative territories and cities are partner town of that administrative territory ?
(c(Q56061),P190,Q5468) (c(Q515),P190,Q5468) (c(Q56061),P190,Q33959) (c(Q515),P190,Q33959) (c(Q56061),P190,Q5468) (c(Q515),P190,Q5468)
[{'concept': 'Q56061'}, 'P190', 'Q5468'] [{'concept': 'Q515'}, 'P190', 'Q5468'] [{'concept': 'Q56061'}, 'P190', 'Q33959'] [{'concept': 'Q515'}, 'P190', 'Q33959'] [{'concept': 'Q56061'}, 'P190', 'Q5468'] [{'concept': 'Q515'}, 'P190', 'Q5468']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q1006838 } UNION { ?y property:P190 resource:Q1006838 } UNION { ?z property:P190 resource:Q249634 } UNION { ?y property:P190 resource:Q249634 } UNION { ?z property:P190 resource:Q1006838 } UNION { ?y property:P190 resource:Q1006838 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7930989 }
[{'concept': 'administrative territorial entity'}, 'sister city', 'Durban'] [{'concept': 'city'}, 'sister city', 'Durban'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Nice'] [{'concept': 'city'}, 'sister city', 'Nice'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Durban'] [{'concept': 'city'}, 'sister city', 'Durban']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Durban } UNION { ?y property:sister_city resource:Durban } UNION { ?z property:sister_city resource:Nice } UNION { ?y property:sister_city resource:Nice } UNION { ?z property:sister_city resource:Durban } UNION { ?y property:sister_city resource:Durban } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:city }
[]
administrative territorial entity city
Quantitative|Count|Mult. entity type|Clarification
Q5468
SYSTEM
Did you mean Durban ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q1006838 } UNION { ?y property:P190 resource:Q1006838 } UNION { ?z property:P190 resource:Q249634 } UNION { ?y property:P190 resource:Q249634 } UNION { ?z property:P190 resource:Q1006838 } UNION { ?y property:P190 resource:Q1006838 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7930989 }
Did you mean Durban ?
Durban
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Durban } UNION { ?y property:sister_city resource:Durban } UNION { ?z property:sister_city resource:Nice } UNION { ?y property:sister_city resource:Nice } UNION { ?z property:sister_city resource:Durban } UNION { ?y property:sister_city resource:Durban } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q56061),P190,Q5468) (c(Q515),P190,Q5468) (c(Q56061),P190,Q33959) (c(Q515),P190,Q33959) (c(Q56061),P190,Q5468) (c(Q515),P190,Q5468)
[{'concept': 'Q56061'}, 'P190', 'Q5468'] [{'concept': 'Q515'}, 'P190', 'Q5468'] [{'concept': 'Q56061'}, 'P190', 'Q33959'] [{'concept': 'Q515'}, 'P190', 'Q33959'] [{'concept': 'Q56061'}, 'P190', 'Q5468'] [{'concept': 'Q515'}, 'P190', 'Q5468']
[{'concept': 'administrative territorial entity'}, 'sister city', 'Durban'] [{'concept': 'city'}, 'sister city', 'Durban'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Nice'] [{'concept': 'city'}, 'sister city', 'Nice'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Durban'] [{'concept': 'city'}, 'sister city', 'Durban']
[]
SYSTEM
13 administrative territories and 1 cities
Q193250 Q20921 Q12892 Q134762 Q34404 Q8678 Q3889 Q12191 Q34647 Q87 Q4361 Q171632 Q1297 Q3825
(c(Q56061),P190,Q5468) (c(Q515),P190,Q5468) (c(Q56061),P190,Q33959) (c(Q515),P190,Q33959) (c(Q56061),P190,Q5468) (c(Q515),P190,Q5468)
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q5468'] [{'concept': 'Q515'}, 'P190', 'Q5468'] [{'concept': 'Q56061'}, 'P190', 'Q33959'] [{'concept': 'Q515'}, 'P190', 'Q33959'] [{'concept': 'Q56061'}, 'P190', 'Q5468'] [{'concept': 'Q515'}, 'P190', 'Q5468']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q1006838 } UNION { ?y property:P190 resource:Q1006838 } UNION { ?z property:P190 resource:Q249634 } UNION { ?y property:P190 resource:Q249634 } UNION { ?z property:P190 resource:Q1006838 } UNION { ?y property:P190 resource:Q1006838 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7930989 }
Bulawayo Daejeon Antwerp Eilat New Orleans Rio de Janeiro Maputo Nantes Johannesburg Alexandria Curitiba Maracaibo Chicago Libreville
13 administrative territories and 1 cities
[{'concept': 'administrative territorial entity'}, 'sister city', 'Durban'] [{'concept': 'city'}, 'sister city', 'Durban'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Nice'] [{'concept': 'city'}, 'sister city', 'Nice'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Durban'] [{'concept': 'city'}, 'sister city', 'Durban']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Durban } UNION { ?y property:sister_city resource:Durban } UNION { ?z property:sister_city resource:Nice } UNION { ?y property:sister_city resource:Nice } UNION { ?z property:sister_city resource:Durban } UNION { ?y property:sister_city resource:Durban } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:city }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q54902
P127
Q1048835 Q811430 Q83620
USER
How many political territories owned greater number of constructions and thoroughfares than Fuenlabrada ?
(c(Q811430)|c(Q83620),P127,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q54902
relation P127
type Q811430
type Q83620
[[{'concept': 'Q811430'}, {'concept': 'Q83620'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?d WHERE { { ?h property:P127 ?d . ?d rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q811430 } UNION { ?h property:P127 ?d . ?d rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q83620 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:P127 resource:Q54902 . { VALUES ( ?a ) { ( ontology:Q811430 ) ( ontology:Q83620 ) } . ?k rdf:type ?a } } } . FILTER ( ?p > ?f ) }
Fuenlabrada
action count
action greater
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Fuenlabrada
relation owned by
type construction
type thoroughfare
[[{'concept': 'construction'}, {'concept': 'thoroughfare'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?d WHERE { { ?h property:owned_by ?d . ?d rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:construction } UNION { ?h property:owned_by ?d . ?d rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:thoroughfare } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:owned_by resource:Fuenlabrada . { VALUES ( ?a ) { ( ontology:construction ) ( ontology:thoroughfare ) } . ?k rdf:type ?a } } } . FILTER ( ?p > ?f ) }
[]
political territorial entity construction thoroughfare
SYSTEM
12
Q192536 Q20937 Q188399 Q133083 Q191091 Q46070 Q192697 Q188373 Q190930 Q192702 Q193307 Q5756
(c(Q811430)|c(Q83620),P127,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q54902
relation P127
type Q811430
type Q83620
[ANSWER]
[[{'concept': 'Q811430'}, {'concept': 'Q83620'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?d WHERE { { ?h property:P127 ?d . ?d rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q811430 } UNION { ?h property:P127 ?d . ?d rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q83620 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:P127 resource:Q54902 . { VALUES ( ?a ) { ( ontology:Q811430 ) ( ontology:Q83620 ) } . ?k rdf:type ?a } } } . FILTER ( ?p > ?f ) }
Zlín Region Gyeonggi Province Central Bohemian Region Gauteng Karlovy Vary Region Plzeň Region South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Olomouc Region Community of Madrid
12
action count
action greater
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Fuenlabrada
relation owned by
type construction
type thoroughfare
[[{'concept': 'construction'}, {'concept': 'thoroughfare'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?d WHERE { { ?h property:owned_by ?d . ?d rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:construction } UNION { ?h property:owned_by ?d . ?d rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:thoroughfare } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:owned_by resource:Fuenlabrada . { VALUES ( ?a ) { ( ontology:construction ) ( ontology:thoroughfare ) } . ?k rdf:type ?a } } } . FILTER ( ?p > ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q17557
P127
Q1048835 Q811430 Q83620
USER
And how about California Republic?
(c(Q811430)|c(Q83620),P127,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q17557
relation P127
type Q811430
type Q83620
[[{'concept': 'Q811430'}, {'concept': 'Q83620'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?p WHERE { { ?r property:P127 ?p . ?p rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q811430 } UNION { ?r property:P127 ?p . ?r rdf:type ontology:Q83620 . ?p rdf:type ontology:Q1048835 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:Q811430 ) ( ontology:Q83620 ) } } . ?c property:P127 resource:Q17557 } } . FILTER ( ?n > ?t ) }
California Republic
action count
action greater
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity California Republic
relation owned by
type construction
type thoroughfare
[[{'concept': 'construction'}, {'concept': 'thoroughfare'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?p WHERE { { ?r property:owned_by ?p . ?p rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:construction } UNION { ?r property:owned_by ?p . ?r rdf:type ontology:thoroughfare . ?p rdf:type ontology:political_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:construction ) ( ontology:thoroughfare ) } } . ?c property:owned_by resource:California_Republic } } . FILTER ( ?n > ?t ) }
[]
political territorial entity construction thoroughfare
SYSTEM
12
Q192536 Q20937 Q188399 Q133083 Q191091 Q46070 Q192697 Q188373 Q190930 Q192702 Q193307 Q5756
(c(Q811430)|c(Q83620),P127,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q17557
relation P127
type Q811430
type Q83620
[ANSWER]
[[{'concept': 'Q811430'}, {'concept': 'Q83620'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?p WHERE { { ?r property:P127 ?p . ?p rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q811430 } UNION { ?r property:P127 ?p . ?r rdf:type ontology:Q83620 . ?p rdf:type ontology:Q1048835 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:Q811430 ) ( ontology:Q83620 ) } } . ?c property:P127 resource:Q17557 } } . FILTER ( ?n > ?t ) }
Zlín Region Gyeonggi Province Central Bohemian Region Gauteng Karlovy Vary Region Plzeň Region South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Olomouc Region Community of Madrid
12
action count
action greater
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity California Republic
relation owned by
type construction
type thoroughfare
[[{'concept': 'construction'}, {'concept': 'thoroughfare'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?p WHERE { { ?r property:owned_by ?p . ?p rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:construction } UNION { ?r property:owned_by ?p . ?r rdf:type ontology:thoroughfare . ?p rdf:type ontology:political_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:construction ) ( ontology:thoroughfare ) } } . ?c property:owned_by resource:California_Republic } } . FILTER ( ?n > ?t ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33959
P740
Q2088357
USER
Which are the musical ensembles that originates at Nice ?
(c(Q2088357),P740,Q33959)
action filter_type
action find_reverse
entity Q33959
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q33959']
SELECT DISTINCT ?w WHERE { ?w property:P740 resource:Q33959 . ?w rdf:type ontology:Q2088357 }
Nice
action filter_type
action find_reverse
entity Nice
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Nice']
SELECT DISTINCT ?w WHERE { ?w property:location_of_formation resource:Nice . ?w rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q2750647 Q21520155
SYSTEM
Kerion, Hyphen Hyphen
Q2750647 Q21520155
(c(Q2088357),P740,Q33959)
action filter_type
action find_reverse
entity Q33959
relation P740
type Q2088357
[ANSWERS]
[{'concept': 'Q2088357'}, 'P740', 'Q33959']
SELECT DISTINCT ?w WHERE { ?w property:P740 resource:Q33959 . ?w rdf:type ontology:Q2088357 }
Kerion Hyphen Hyphen
The musical ensembles that originates at Nice are the Kerion and Hyphen
Kerion Hyphen Hyphen
action filter_type
action find_reverse
entity Nice
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Nice']
SELECT DISTINCT ?w WHERE { ?w property:location_of_formation resource:Nice . ?w rdf:type ontology:musical_ensemble }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33959
P47
Q20667921
USER
Which french administrative divisions are bordered by Nice ?
(Q33959,P47,c(Q20667921))
action filter_type
action find
entity Q33959
relation P47
type Q20667921
['Q33959', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q33959 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Nice
action filter_type
action find
entity Nice
relation shares border with
type type of french administrative division
['Nice', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Nice property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1018274 Q207080 Q845711
SYSTEM
Tourrette-Levens, Villefranche-sur-Mer, Cantaron
Q845711 Q217755 Q867129 Q746896 Q1018274 Q242617 Q473663 Q845148 Q207080 Q429102 Q652150 Q383475 Q328217
(Q33959,P47,c(Q20667921))
action filter_type
action find
entity Q33959
relation P47
type Q20667921
[ANSWERS] are bordered by Nice
['Q33959', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q33959 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Cantaron Saint-Laurent-du-Var Falicon Saint-André-de-la-Roche Tourrette-Levens Èze Saint-Jeannet Colomars Villefranche-sur-Mer La Gaude Gattières La Trinité Aspremont
Tourrette-Levens, Villefranche-sur-Mer and Cantaron are bordered by Nice
Tourrette-Levens Villefranche-sur-Mer Cantaron
action filter_type
action find
entity Nice
relation shares border with
type type of french administrative division
['Nice', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Nice property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q599909
Q20667921
USER
And also tell me about Valleroy-aux-Saules?
(Q599909,P47,c(Q20667921))
action filter_type
action find
entity Q599909
relation P47
type Q20667921
['Q599909', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q599909 property:P47 ?m . ?m rdf:type ontology:Q20667921 }
Valleroy-aux-Saules
action filter_type
action find
entity Valleroy-aux-Saules
relation shares border with
type type of french administrative division
['Valleroy-aux-Saules', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Valleroy-aux-Saules property:shares_border_with ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q303240 Q1409726 Q1461100
SYSTEM
Velotte-et-Tatignécourt, Hagécourt, Rancourt
Q303240 Q192599 Q1409726 Q752827 Q223173 Q1461100 Q223686
(Q599909,P47,c(Q20667921))
action filter_type
action find
entity Q599909
relation P47
type Q20667921
[ANSWERS]
['Q599909', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q599909 property:P47 ?m . ?m rdf:type ontology:Q20667921 }
Velotte-et-Tatignécourt Maroncourt Hagécourt Hymont Madecourt Rancourt Bazoilles-et-Ménil
Velotte-et-Tatignécourt Hagécourt Rancourt
action filter_type
action find
entity Valleroy-aux-Saules
relation shares border with
type type of french administrative division
['Valleroy-aux-Saules', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Valleroy-aux-Saules property:shares_border_with ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P737
Q2088357 Q215380 Q2088357
USER
How many musical ensembles influenced around 2 bands and musical ensembles ?
(c(Q215380)|c(Q2088357),P737,c(Q2088357))
action count
action approx
action union
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q215380
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q2088357
value 2
[[{'concept': 'Q215380'}, {'concept': 'Q2088357'}], 'P737', {'concept': 'Q2088357'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?f WHERE { { ?x property:P737 ?f . ?f rdf:type ontology:Q2088357 . ?x rdf:type ontology:Q2088357 } UNION { ?x property:P737 ?f . ?f rdf:type ontology:Q2088357 . ?x rdf:type ontology:Q215380 } } GROUP BY ?f } . FILTER ( ?h = 2 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type band
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type musical ensemble
value 2
[[{'concept': 'band'}, {'concept': 'musical ensemble'}], 'influenced by', {'concept': 'musical ensemble'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?f WHERE { { ?x property:influenced_by ?f . ?f rdf:type ontology:musical_ensemble . ?x rdf:type ontology:musical_ensemble } UNION { ?x property:influenced_by ?f . ?f rdf:type ontology:musical_ensemble . ?x rdf:type ontology:band } } GROUP BY ?f } . FILTER ( ?h = 2 ) }
[]
musical ensemble band musical ensemble
SYSTEM
3
Q44190 Q188626 Q482477
(c(Q215380)|c(Q2088357),P737,c(Q2088357))
action count
action approx
action union
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q215380
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q2088357
value 2
[ANSWER]
[[{'concept': 'Q215380'}, {'concept': 'Q2088357'}], 'P737', {'concept': 'Q2088357'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?f WHERE { { ?x property:P737 ?f . ?f rdf:type ontology:Q2088357 . ?x rdf:type ontology:Q2088357 } UNION { ?x property:P737 ?f . ?f rdf:type ontology:Q2088357 . ?x rdf:type ontology:Q215380 } } GROUP BY ?f } . FILTER ( ?h = 2 ) }
Radiohead Sonic Youth Blink-182
3
action count
action approx
action union
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type band
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type musical ensemble
value 2
[[{'concept': 'band'}, {'concept': 'musical ensemble'}], 'influenced by', {'concept': 'musical ensemble'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?f WHERE { { ?x property:influenced_by ?f . ?f rdf:type ontology:musical_ensemble . ?x rdf:type ontology:musical_ensemble } UNION { ?x property:influenced_by ?f . ?f rdf:type ontology:musical_ensemble . ?x rdf:type ontology:band } } GROUP BY ?f } . FILTER ( ?h = 2 ) }
[]