Simple Question (Direct)
Simple Question
Q1336105
P19
Q56061
USER
Where was Matteo Sereni born ?
(Q1336105,P19,c(Q56061))
action filter_type
action find
entity Q1336105
relation P19
type Q56061
['Q1336105', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q1336105 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Matteo Sereni
action filter_type
action find
entity Matteo Sereni
relation place of birth
type administrative territorial entity
['Matteo Sereni', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Matteo_Sereni property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2683
SYSTEM
Parma
Q2683
(Q1336105,P19,c(Q56061))
action filter_type
action find
entity Q1336105
relation P19
type Q56061
Matteo Sereni was born in [ANSWER]
['Q1336105', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q1336105 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Parma
Matteo Sereni was born in Parma
Parma
action filter_type
action find
entity Matteo Sereni
relation place of birth
type administrative territorial entity
['Matteo Sereni', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Matteo_Sereni property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2683
P190
Q20667921
USER
Which french administrative divisions are sister towns of that administrative territory ?
(Q2683,P190,c(Q20667921))
action filter_type
action find
entity Q2683
relation P190
type Q20667921
['Q2683', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q2683 property:P190 ?g . ?g rdf:type ontology:Q20667921 }
Parma
action filter_type
action find
entity Parma
relation sister city
type type of french administrative division
['Parma', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Parma property:sister_city ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q133069 Q288
SYSTEM
Bourg-en-Bresse, Tours
Q133069 Q288
(Q2683,P190,c(Q20667921))
action filter_type
action find
entity Q2683
relation P190
type Q20667921
[ANSWERS] are sister towns of that administrative territory
['Q2683', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q2683 property:P190 ?g . ?g rdf:type ontology:Q20667921 }
Bourg-en-Bresse Tours
Bourg-en-Bresse and Tours are sister towns of that administrative territory
Bourg-en-Bresse Tours
action filter_type
action find
entity Parma
relation sister city
type type of french administrative division
['Parma', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Parma property:sister_city ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q288
P1444
Q878123
USER
Which racings have Tours as their destination point ?
(c(Q878123),P1444,Q288)
action filter_type
action find_reverse
entity Q288
relation P1444
type Q878123
[{'concept': 'Q878123'}, 'P1444', 'Q288']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q878123 . ?p property:P1444 resource:Q288 }
Tours
action filter_type
action find_reverse
entity Tours
relation destination point
type racing
[{'concept': 'racing'}, 'destination point', 'Tours']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:racing . ?p property:destination_point resource:Tours }
[]
racing
Q444091 Q2682484
SYSTEM
2005 Tour de France, Stage 3, 2013 Tour de France, Stage 12
Q444091 Q2682484
(c(Q878123),P1444,Q288)
action filter_type
action find_reverse
entity Q288
relation P1444
type Q878123
[ANSWERS]
[{'concept': 'Q878123'}, 'P1444', 'Q288']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q878123 . ?p property:P1444 resource:Q288 }
2005 Tour de France, Stage 3 2013 Tour de France, Stage 12
2005 Tour de France, Stage 3 and 2013 Tour de France, Stage 12 have Tours as their destination point
2005 Tour de France, Stage 3 2013 Tour de France, Stage 12
action filter_type
action find_reverse
entity Tours
relation destination point
type racing
[{'concept': 'racing'}, 'destination point', 'Tours']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:racing . ?p property:destination_point resource:Tours }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q288
P47
Q20667921
USER
Who share the border with Tours ?
(Q288,P47,c(Q20667921))
action filter_type
action find
entity Q288
relation P47
type Q20667921
['Q288', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q288 property:P47 ?f . ?f rdf:type ontology:Q20667921 }
Tours
action filter_type
action find
entity Tours
relation shares border with
type type of french administrative division
['Tours', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Tours property:shares_border_with ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q269364 Q656494 Q641181
SYSTEM
Joué-lès-Tours, Saint-Cyr-sur-Loire, Chambray-lès-Tours
Q661814 Q269364 Q693028 Q1170859 Q656494 Q737461 Q641181 Q1172052 Q932130 Q1141332
(Q288,P47,c(Q20667921))
action filter_type
action find
entity Q288
relation P47
type Q20667921
[ANSWERS] share the border with Tours
['Q288', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q288 property:P47 ?f . ?f rdf:type ontology:Q20667921 }
La Riche Joué-lès-Tours Rochecorbon Parçay-Meslay Saint-Cyr-sur-Loire Notre-Dame-d'Oé Chambray-lès-Tours Mettray Saint-Avertin Saint-Pierre-des-Corps
Joué-lès-Tours, Saint-Cyr-sur-Loire and Chambray-lès-Tours share the border with Tours
Joué-lès-Tours Saint-Cyr-sur-Loire Chambray-lès-Tours
action filter_type
action find
entity Tours
relation shares border with
type type of french administrative division
['Tours', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Tours property:shares_border_with ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q200445
P47
Q20667921
USER
Do Liesville-sur-Douve have an adjacent border with those ones ?
(Q200445,P47,Q269364) (Q200445,P47,Q656494) (Q200445,P47,Q641181)
action is_in
entity prev_answer
action find
entity Q200445
relation P47
['Q200445', 'P47', 'Q269364'] ['Q200445', 'P47', 'Q656494'] ['Q200445', 'P47', 'Q641181']
ASK WHERE { resource:Q200445 property:P47 ?y . VALUES ( ?y ) { ( resource:Q661814 ) ( resource:Q269364 ) ( resource:Q693028 ) } }
Liesville-sur-Douve
action is_in
entity prev_answer
action find
entity Liesville-sur-Douve
relation shares border with
['Liesville-sur-Douve', 'shares border with', 'Joué-lès-Tours'] ['Liesville-sur-Douve', 'shares border with', 'Saint-Cyr-sur-Loire'] ['Liesville-sur-Douve', 'shares border with', 'Chambray-lès-Tours']
ASK WHERE { resource:Liesville-sur-Douve property:shares_border_with ?y . VALUES ( ?y ) { ( resource:La_Riche ) ( resource:Joué-lès-Tours ) ( resource:Rochecorbon ) } }
[]
type of french administrative division
SYSTEM
NO
(Q200445,P47,Q269364) (Q200445,P47,Q656494) (Q200445,P47,Q641181)
action is_in
entity prev_answer
action find
entity Q200445
relation P47
[ANSWER]
['Q200445', 'P47', 'Q269364'] ['Q200445', 'P47', 'Q656494'] ['Q200445', 'P47', 'Q641181']
ASK WHERE { resource:Q200445 property:P47 ?y . VALUES ( ?y ) { ( resource:Q661814 ) ( resource:Q269364 ) ( resource:Q693028 ) } }
No
action is_in
entity prev_answer
action find
entity Liesville-sur-Douve
relation shares border with
['Liesville-sur-Douve', 'shares border with', 'Joué-lès-Tours'] ['Liesville-sur-Douve', 'shares border with', 'Saint-Cyr-sur-Loire'] ['Liesville-sur-Douve', 'shares border with', 'Chambray-lès-Tours']
ASK WHERE { resource:Liesville-sur-Douve property:shares_border_with ?y . VALUES ( ?y ) { ( resource:La_Riche ) ( resource:Joué-lès-Tours ) ( resource:Rochecorbon ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q613813
P1376
Q20667921 Q515
USER
Which cities are the capital of greater number of french administrative divisions than Kőszeg ?
(c(Q515),P1376,c(Q20667921))
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q613813
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?z ) WHERE { ?m property:P1376 ?i . ?m rdf:type ontology:Q515 . ?i rdf:type ontology:Q20667921 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Q613813 property:P1376 ?d . ?d rdf:type ontology:Q515 } } . FILTER ( ?z > ?v ) }
Kőszeg
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Kőszeg
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?z ) WHERE { ?m property:capital_of ?i . ?m rdf:type ontology:city . ?i rdf:type ontology:type_of_french_administrative_division } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Kőszeg property:capital_of ?d . ?d rdf:type ontology:city } } . FILTER ( ?z > ?v ) }
[]
type of french administrative division city
Q23482 Q456 Q7003
SYSTEM
Marseille, Lyon, Dijon
Q23482 Q6602 Q6582 Q456 Q7003
(c(Q515),P1376,c(Q20667921))
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q613813
relation P1376
type Q515
[ANSWERS] are the capital of greater number of french administrative divisions than Kőszeg
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?z ) WHERE { ?m property:P1376 ?i . ?m rdf:type ontology:Q515 . ?i rdf:type ontology:Q20667921 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Q613813 property:P1376 ?d . ?d rdf:type ontology:Q515 } } . FILTER ( ?z > ?v ) }
Marseille Strasbourg Carcassonne Lyon Dijon
Marseille, Lyon and Dijon are the capital of greater number of french administrative divisions than Kőszeg
Marseille Lyon Dijon
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Kőszeg
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?z ) WHERE { ?m property:capital_of ?i . ?m rdf:type ontology:city . ?i rdf:type ontology:type_of_french_administrative_division } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Kőszeg property:capital_of ?d . ?d rdf:type ontology:city } } . FILTER ( ?z > ?v ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1376
Q20667921 Q15617994
USER
How many french administrative divisions or administrative territories have that city have their first city ?
(Q23482,P1376,c(Q20667921)) (Q23482,P1376,c(Q15617994)) (Q23482,P1376,c(Q20667921)) (Q23482,P1376,c(Q15617994)) (Q456,P1376,c(Q20667921)) (Q456,P1376,c(Q15617994)) (Q7003,P1376,c(Q20667921)) (Q7003,P1376,c(Q15617994))
['Q23482', 'P1376', {'concept': 'Q20667921'}] ['Q23482', 'P1376', {'concept': 'Q15617994'}] ['Q23482', 'P1376', {'concept': 'Q20667921'}] ['Q23482', 'P1376', {'concept': 'Q15617994'}] ['Q456', 'P1376', {'concept': 'Q20667921'}] ['Q456', 'P1376', {'concept': 'Q15617994'}] ['Q7003', 'P1376', {'concept': 'Q20667921'}] ['Q7003', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q3849886 property:P1376 ?z } UNION { resource:Q3849886 property:P1376 ?y } UNION { resource:Q3849886 property:P1376 ?z } UNION { resource:Q3849886 property:P1376 ?y } UNION { resource:Q294688 property:P1376 ?z } UNION { resource:Q294688 property:P1376 ?y } UNION { resource:Q5276495 property:P1376 ?z } UNION { resource:Q5276495 property:P1376 ?y } } . ?z rdf:type ontology:Q20667921 . ?y rdf:type ontology:Q15617994 }
['Marseille', 'capital of', {'concept': 'type of french administrative division'}] ['Marseille', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Marseille', 'capital of', {'concept': 'type of french administrative division'}] ['Marseille', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Lyon', 'capital of', {'concept': 'type of french administrative division'}] ['Lyon', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Dijon', 'capital of', {'concept': 'type of french administrative division'}] ['Dijon', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Marseille property:capital_of ?z } UNION { resource:Marseille property:capital_of ?y } UNION { resource:Marseille property:capital_of ?z } UNION { resource:Marseille property:capital_of ?y } UNION { resource:Lyon property:capital_of ?z } UNION { resource:Lyon property:capital_of ?y } UNION { resource:Dijon property:capital_of ?z } UNION { resource:Dijon property:capital_of ?y } } . ?z rdf:type ontology:type_of_french_administrative_division . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
type of french administrative division designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q7003
SYSTEM
Did you mean Dijon ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q3849886 property:P1376 ?z } UNION { resource:Q3849886 property:P1376 ?y } UNION { resource:Q3849886 property:P1376 ?z } UNION { resource:Q3849886 property:P1376 ?y } UNION { resource:Q294688 property:P1376 ?z } UNION { resource:Q294688 property:P1376 ?y } UNION { resource:Q5276495 property:P1376 ?z } UNION { resource:Q5276495 property:P1376 ?y } } . ?z rdf:type ontology:Q20667921 . ?y rdf:type ontology:Q15617994 }
Did you mean Dijon ?
Dijon
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Marseille property:capital_of ?z } UNION { resource:Marseille property:capital_of ?y } UNION { resource:Marseille property:capital_of ?z } UNION { resource:Marseille property:capital_of ?y } UNION { resource:Lyon property:capital_of ?z } UNION { resource:Lyon property:capital_of ?y } UNION { resource:Dijon property:capital_of ?z } UNION { resource:Dijon property:capital_of ?y } } . ?z rdf:type ontology:type_of_french_administrative_division . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Marseille. Could you tell me the answer for that?
(Q23482,P1376,c(Q20667921)) (Q23482,P1376,c(Q15617994)) (Q23482,P1376,c(Q20667921)) (Q23482,P1376,c(Q15617994)) (Q456,P1376,c(Q20667921)) (Q456,P1376,c(Q15617994)) (Q7003,P1376,c(Q20667921)) (Q7003,P1376,c(Q15617994))
Q23482
['Q23482', 'P1376', {'concept': 'Q20667921'}] ['Q23482', 'P1376', {'concept': 'Q15617994'}] ['Q23482', 'P1376', {'concept': 'Q20667921'}] ['Q23482', 'P1376', {'concept': 'Q15617994'}] ['Q456', 'P1376', {'concept': 'Q20667921'}] ['Q456', 'P1376', {'concept': 'Q15617994'}] ['Q7003', 'P1376', {'concept': 'Q20667921'}] ['Q7003', 'P1376', {'concept': 'Q15617994'}]
['Marseille', 'capital of', {'concept': 'type of french administrative division'}] ['Marseille', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Marseille', 'capital of', {'concept': 'type of french administrative division'}] ['Marseille', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Lyon', 'capital of', {'concept': 'type of french administrative division'}] ['Lyon', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Dijon', 'capital of', {'concept': 'type of french administrative division'}] ['Dijon', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
27
Q585715 Q1657879 Q1726149 Q1726127 Q3240 Q740598 Q1517425 Q1660878 Q1726147 Q1726143 Q1726141 Q1726150 Q1726121 Q15104 Q930210 Q1726115 Q1726117 Q2035144 Q1726132 Q1726113 Q1726123 Q1605528 Q1726125 Q1726134 Q1726128 Q1726137 Q993282
(Q23482,P1376,c(Q20667921)) (Q23482,P1376,c(Q15617994)) (Q23482,P1376,c(Q20667921)) (Q23482,P1376,c(Q15617994)) (Q456,P1376,c(Q20667921)) (Q456,P1376,c(Q15617994)) (Q7003,P1376,c(Q20667921)) (Q7003,P1376,c(Q15617994))
[ANSWER]
['Q23482', 'P1376', {'concept': 'Q20667921'}] ['Q23482', 'P1376', {'concept': 'Q15617994'}] ['Q23482', 'P1376', {'concept': 'Q20667921'}] ['Q23482', 'P1376', {'concept': 'Q15617994'}] ['Q456', 'P1376', {'concept': 'Q20667921'}] ['Q456', 'P1376', {'concept': 'Q15617994'}] ['Q7003', 'P1376', {'concept': 'Q20667921'}] ['Q7003', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q3849886 property:P1376 ?z } UNION { resource:Q3849886 property:P1376 ?y } UNION { resource:Q3849886 property:P1376 ?z } UNION { resource:Q3849886 property:P1376 ?y } UNION { resource:Q294688 property:P1376 ?z } UNION { resource:Q294688 property:P1376 ?y } UNION { resource:Q5276495 property:P1376 ?z } UNION { resource:Q5276495 property:P1376 ?y } } . ?z rdf:type ontology:Q20667921 . ?y rdf:type ontology:Q15617994 }
canton of Marseille-Les Trois Lucs canton of Marseille-Les Cinq-Avenues canton of Marseille-Vauban canton of Marseille-Montolivet Bouches-du-Rhône canton of Marseille-Saint-Marcel canton of Marseille-Belsunce canton of Marseille-La Belle-de-Mai canton of Marseille-Sainte-Marguerite canton of Marseille-Saint-Mauront canton of Marseille-Saint-Lambert canton of Marseille-Verduron canton of Marseille-Les Grands-Carmes Provence-Alpes-Côte d'Azur canton of Marseille-Le Camas canton of Marseille-La Capelette canton of Marseille-La Pomme canton of Marseille-La Rose canton of Marseille-Notre-Dame-du-Mont canton of Marseille-la Blancarde canton of Marseille-Les Olives canton of Marseille-La Pointe-Rouge canton of Marseille-Mazargues canton of Marseille-Saint-Giniez canton of Marseille-Notre-Dame-Limite canton of Marseille-Saint-Just canton of Marseille-Saint-Barthélemy
27
['Marseille', 'capital of', {'concept': 'type of french administrative division'}] ['Marseille', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Marseille', 'capital of', {'concept': 'type of french administrative division'}] ['Marseille', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Lyon', 'capital of', {'concept': 'type of french administrative division'}] ['Lyon', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Dijon', 'capital of', {'concept': 'type of french administrative division'}] ['Dijon', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Marseille property:capital_of ?z } UNION { resource:Marseille property:capital_of ?y } UNION { resource:Marseille property:capital_of ?z } UNION { resource:Marseille property:capital_of ?y } UNION { resource:Lyon property:capital_of ?z } UNION { resource:Lyon property:capital_of ?y } UNION { resource:Dijon property:capital_of ?z } UNION { resource:Dijon property:capital_of ?y } } . ?z rdf:type ontology:type_of_french_administrative_division . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q363479
P609
Q515 Q34442 Q83620
USER
How many cities are the terminus locations of approximately the same number of roads or thoroughfares as Shangrao ?
(c(Q34442)|c(Q83620),P609,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q363479
relation P609
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:P609 resource:Q363479 . { { ?a rdf:type ontology:Q34442 } UNION { ?a rdf:type ontology:Q83620 } } } } . FILTER ( ?d = ?p ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } } GROUP BY ?r } }
Shangrao
action count
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Shangrao
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:terminus_location resource:Shangrao . { { ?a rdf:type ontology:road } UNION { ?a rdf:type ontology:thoroughfare } } } } . FILTER ( ?d = ?p ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:road ) ( ontology:thoroughfare ) } } GROUP BY ?r } }
[]
city road thoroughfare
SYSTEM
71
Q8652 Q349982 Q601254 Q425996 Q756581 Q320950 Q869037 Q16506 Q363479 Q1027604 Q2092257 Q16959 Q68481 Q851155 Q181276 Q249007 Q341777 Q5869 Q16520 Q541071 Q360374 Q6602 Q535534 Q819620 Q193724 Q987487 Q180470 Q210365 Q533157 Q1630623 Q158245 Q2079 Q217698 Q379160 Q18575 Q1000069 Q612646 Q42622 Q71227 Q1641736 Q185684 Q373101 Q426868 Q278877 Q147738 Q502981 Q1008696 Q373023 Q954611 Q1761 Q373687 Q162880 Q682544 Q187136 Q404529 Q954569 Q304848 Q16666 Q34750 Q570768 Q321778 Q513417 Q11506 Q200603 Q946780 Q1899 Q1009095 Q57756 Q360643 Q58401 Q587388
(c(Q34442)|c(Q83620),P609,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q363479
relation P609
type Q34442
type Q83620
[ANSWER]
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:P609 resource:Q363479 . { { ?a rdf:type ontology:Q34442 } UNION { ?a rdf:type ontology:Q83620 } } } } . FILTER ( ?d = ?p ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } } GROUP BY ?r } }
Miami Hegang Dubí Deyang Františkovy Lázně Trutnov Takasago České Budějovice Shangrao Uherský Ostroh Rožmitál pod Třemšínem Ürümqi Fuzhou Kasai Szolnok Wuwei Čáslav Lhasa Busan Hulín Anqing Strasbourg Hohhot Seiyo Slavkov u Brna Ostrov Huangshan City Beihai Tianshui Hostivice Písek Leipzig Weifang Kunszentmárton Tucson Lovosice Veselí nad Lužnicí Suzhou Shiyan Pohořelice Hefei Rizhao Leshan Český Těšín Saint Helier Miyako Rožnov pod Radhoštěm Weihai Jeseník Dublin Binzhou Dezhou Mikulov Luoyang Xuchang Vyškov Daqing Nanjing Fuxin Wuhai Hodonín Vsetín Denpasar Yawatahama Lanžhot Kyiv Otrokovice Lianyungang Suzhou, Anhui Shijiazhuang Mohelnice
71
action count
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Shangrao
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:terminus_location resource:Shangrao . { { ?a rdf:type ontology:road } UNION { ?a rdf:type ontology:thoroughfare } } } } . FILTER ( ?d = ?p ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:road ) ( ontology:thoroughfare ) } } GROUP BY ?r } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q954611
P609
Q515 Q34442 Q83620
USER
And also tell me about Jeseník?
(c(Q34442)|c(Q83620),P609,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q954611
relation P609
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?l ) WHERE { { ?d rdf:type ontology:Q515 . ?q rdf:type ontology:Q34442 . ?q property:P609 ?d } UNION { ?q property:P609 ?d . ?d rdf:type ontology:Q515 . ?q rdf:type ontology:Q83620 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:P609 resource:Q954611 . { { ?t rdf:type ontology:Q34442 } UNION { ?t rdf:type ontology:Q83620 } } } } . FILTER ( ?l = ?i ) }
Jeseník
action count
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Jeseník
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?l ) WHERE { { ?d rdf:type ontology:city . ?q rdf:type ontology:road . ?q property:terminus_location ?d } UNION { ?q property:terminus_location ?d . ?d rdf:type ontology:city . ?q rdf:type ontology:thoroughfare } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:terminus_location resource:Jeseník . { { ?t rdf:type ontology:road } UNION { ?t rdf:type ontology:thoroughfare } } } } . FILTER ( ?l = ?i ) }
[]
city road thoroughfare
SYSTEM
71
Q8652 Q349982 Q601254 Q425996 Q756581 Q320950 Q869037 Q16506 Q363479 Q1027604 Q2092257 Q16959 Q68481 Q851155 Q181276 Q249007 Q341777 Q5869 Q16520 Q541071 Q360374 Q6602 Q535534 Q819620 Q193724 Q987487 Q180470 Q210365 Q533157 Q1630623 Q158245 Q2079 Q217698 Q379160 Q18575 Q1000069 Q612646 Q42622 Q71227 Q1641736 Q185684 Q373101 Q426868 Q278877 Q147738 Q502981 Q1008696 Q373023 Q954611 Q1761 Q373687 Q162880 Q682544 Q187136 Q404529 Q954569 Q304848 Q16666 Q34750 Q570768 Q321778 Q513417 Q11506 Q200603 Q946780 Q1899 Q1009095 Q57756 Q360643 Q58401 Q587388
(c(Q34442)|c(Q83620),P609,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q954611
relation P609
type Q34442
type Q83620
[ANSWER]
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?l ) WHERE { { ?d rdf:type ontology:Q515 . ?q rdf:type ontology:Q34442 . ?q property:P609 ?d } UNION { ?q property:P609 ?d . ?d rdf:type ontology:Q515 . ?q rdf:type ontology:Q83620 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:P609 resource:Q954611 . { { ?t rdf:type ontology:Q34442 } UNION { ?t rdf:type ontology:Q83620 } } } } . FILTER ( ?l = ?i ) }
Miami Hegang Dubí Deyang Františkovy Lázně Trutnov Takasago České Budějovice Shangrao Uherský Ostroh Rožmitál pod Třemšínem Ürümqi Fuzhou Kasai Szolnok Wuwei Čáslav Lhasa Busan Hulín Anqing Strasbourg Hohhot Seiyo Slavkov u Brna Ostrov Huangshan City Beihai Tianshui Hostivice Písek Leipzig Weifang Kunszentmárton Tucson Lovosice Veselí nad Lužnicí Suzhou Shiyan Pohořelice Hefei Rizhao Leshan Český Těšín Saint Helier Miyako Rožnov pod Radhoštěm Weihai Jeseník Dublin Binzhou Dezhou Mikulov Luoyang Xuchang Vyškov Daqing Nanjing Fuxin Wuhai Hodonín Vsetín Denpasar Yawatahama Lanžhot Kyiv Otrokovice Lianyungang Suzhou, Anhui Shijiazhuang Mohelnice
71
action count
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Jeseník
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?l ) WHERE { { ?d rdf:type ontology:city . ?q rdf:type ontology:road . ?q property:terminus_location ?d } UNION { ?q property:terminus_location ?d . ?d rdf:type ontology:city . ?q rdf:type ontology:thoroughfare } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:terminus_location resource:Jeseník . { { ?t rdf:type ontology:road } UNION { ?t rdf:type ontology:thoroughfare } } } } . FILTER ( ?l = ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q72778
P1376
Q7275 Q20667921 Q515
USER
How many cities are the county seat of more number of states and french administrative divisions than Taiyuan ?
(c(Q515),P1376,c(Q7275)|c(Q20667921))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q7275
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_multi_types
action find
entity Q72778
relation P1376
type Q7275
type Q20667921
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q7275'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?x ) WHERE { { ?y property:P1376 ?t . ?y rdf:type ontology:Q515 . ?t rdf:type ontology:Q7275 } UNION { ?y rdf:type ontology:Q515 . ?t rdf:type ontology:Q20667921 . ?y property:P1376 ?t } } GROUP BY ?y } . FILTER ( ?x > ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { { { ?l rdf:type ontology:Q7275 } UNION { ?l rdf:type ontology:Q20667921 } } . resource:Q72778 property:P1376 ?l } } }
Taiyuan
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type state
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_multi_types
action find
entity Taiyuan
relation capital of
type state
type type of french administrative division
[{'concept': 'city'}, 'capital of', [{'concept': 'state'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?x ) WHERE { { ?y property:capital_of ?t . ?y rdf:type ontology:city . ?t rdf:type ontology:state } UNION { ?y rdf:type ontology:city . ?t rdf:type ontology:type_of_french_administrative_division . ?y property:capital_of ?t } } GROUP BY ?y } . FILTER ( ?x > ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { { { ?l rdf:type ontology:state } UNION { ?l rdf:type ontology:type_of_french_administrative_division } } . resource:Taiyuan property:capital_of ?l } } }
[]
state type of french administrative division city
SYSTEM
11
Q23482 Q5838 Q1899 Q6602 Q2936 Q187136 Q6582 Q456 Q7003 Q1530 Q16666
(c(Q515),P1376,c(Q7275)|c(Q20667921))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q7275
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_multi_types
action find
entity Q72778
relation P1376
type Q7275
type Q20667921
[ANSWER]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q7275'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?x ) WHERE { { ?y property:P1376 ?t . ?y rdf:type ontology:Q515 . ?t rdf:type ontology:Q7275 } UNION { ?y rdf:type ontology:Q515 . ?t rdf:type ontology:Q20667921 . ?y property:P1376 ?t } } GROUP BY ?y } . FILTER ( ?x > ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { { { ?l rdf:type ontology:Q7275 } UNION { ?l rdf:type ontology:Q20667921 } } . resource:Q72778 property:P1376 ?l } } }
Marseille Kabul Kyiv Strasbourg Oldenburg Luoyang Carcassonne Lyon Dijon Baghdad Nanjing
11
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type state
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_multi_types
action find
entity Taiyuan
relation capital of
type state
type type of french administrative division
[{'concept': 'city'}, 'capital of', [{'concept': 'state'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?x ) WHERE { { ?y property:capital_of ?t . ?y rdf:type ontology:city . ?t rdf:type ontology:state } UNION { ?y rdf:type ontology:city . ?t rdf:type ontology:type_of_french_administrative_division . ?y property:capital_of ?t } } GROUP BY ?y } . FILTER ( ?x > ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { { { ?l rdf:type ontology:state } UNION { ?l rdf:type ontology:type_of_french_administrative_division } } . resource:Taiyuan property:capital_of ?l } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q281371
P1376
Q7275 Q20667921 Q515
USER
And what about Jászberény?
(c(Q515),P1376,c(Q7275)|c(Q20667921))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q7275
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_multi_types
action find
entity Q281371
relation P1376
type Q7275
type Q20667921
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q7275'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Q281371 property:P1376 ?e . { { ?e rdf:type ontology:Q20667921 } UNION { ?e rdf:type ontology:Q7275 } } } } . FILTER ( ?o > ?i ) . { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?o ) WHERE { { ?u property:P1376 ?s . ?s rdf:type ontology:Q7275 . ?u rdf:type ontology:Q515 } UNION { ?u rdf:type ontology:Q515 . ?s rdf:type ontology:Q20667921 . ?u property:P1376 ?s } } GROUP BY ?u } }
Jászberény
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type state
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_multi_types
action find
entity Jászberény
relation capital of
type state
type type of french administrative division
[{'concept': 'city'}, 'capital of', [{'concept': 'state'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Jászberény property:capital_of ?e . { { ?e rdf:type ontology:type_of_french_administrative_division } UNION { ?e rdf:type ontology:state } } } } . FILTER ( ?o > ?i ) . { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?o ) WHERE { { ?u property:capital_of ?s . ?s rdf:type ontology:state . ?u rdf:type ontology:city } UNION { ?u rdf:type ontology:city . ?s rdf:type ontology:type_of_french_administrative_division . ?u property:capital_of ?s } } GROUP BY ?u } }
[]
state type of french administrative division city
SYSTEM
58
Q3572 Q19689 Q8131 Q27860 Q3624 Q58650 Q71305 Q18970 Q80989 Q3926 Q23482 Q5838 Q1899 Q1794 Q665 Q1486 Q220445 Q1461 Q23430 Q8684 Q3838 Q6602 Q1069007 Q7568 Q1731 Q19660 Q1953 Q9005 Q1330294 Q2773 Q1854 Q308657 Q3826 Q68481 Q2936 Q7929221 Q11194 Q83247 Q11443 Q183584 Q2844 Q11725 Q73156 Q1865 Q18342086 Q72778 Q187136 Q6582 Q107401 Q1761 Q2069869 Q456 Q7003 Q726993 Q3919 Q1530 Q2999 Q16666
(c(Q515),P1376,c(Q7275)|c(Q20667921))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q7275
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_multi_types
action find
entity Q281371
relation P1376
type Q7275
type Q20667921
[ANSWER]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q7275'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Q281371 property:P1376 ?e . { { ?e rdf:type ontology:Q20667921 } UNION { ?e rdf:type ontology:Q7275 } } } } . FILTER ( ?o > ?i ) . { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?o ) WHERE { { ?u property:P1376 ?s . ?s rdf:type ontology:Q7275 . ?u rdf:type ontology:Q515 } UNION { ?u rdf:type ontology:Q515 . ?s rdf:type ontology:Q20667921 . ?u property:P1376 ?s } } GROUP BY ?u } }
Tunis Tirana Palembang Jayapura Addis Ababa Zhangjiakou Ezhou Ambon Bhopal Pretoria Marseille Kabul Kyiv Frankfurt Lugdunum Buenos Aires Kuching Manila Ulaanbaatar Seoul Kinshasa Strasbourg Washukanni Yogyakarta Dresden Bucharest Yerevan Brussels Jiankang Braunschweig Ho Chi Minh City Minas Tirith Muscat Fuzhou Oldenburg Vijaya Sarajevo Braga Kediri Lanzhou Brasília Chongqing Linfen Kuala Lumpur Oyo-Ile Taiyuan Luoyang Carcassonne Sivas Dublin Edoras Lyon Dijon Cotabato City Gaborone Baghdad Würzburg Nanjing
58
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type state
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_multi_types
action find
entity Jászberény
relation capital of
type state
type type of french administrative division
[{'concept': 'city'}, 'capital of', [{'concept': 'state'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Jászberény property:capital_of ?e . { { ?e rdf:type ontology:type_of_french_administrative_division } UNION { ?e rdf:type ontology:state } } } } . FILTER ( ?o > ?i ) . { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?o ) WHERE { { ?u property:capital_of ?s . ?s rdf:type ontology:state . ?u rdf:type ontology:city } UNION { ?u rdf:type ontology:city . ?s rdf:type ontology:type_of_french_administrative_division . ?u property:capital_of ?s } } GROUP BY ?u } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2716411 Q363479
P17
Q15617994
USER
Which administrative territories are Shangrao or Scorțoasa present in ?
OR((Q363479,P17,c(Q15617994)), (Q2716411,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q363479
relation P17
action find
entity Q2716411
relation P17
type Q15617994
{'OR': [['Q363479', 'P17', {'concept': 'Q15617994'}], ['Q2716411', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q363479 property:P17 ?k } UNION { resource:Q2716411 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Scorțoasa Shangrao
action filter_type
action union
action find
entity Shangrao
relation country
action find
entity Scorțoasa
relation country
type designation for an administrative territorial entity
{'OR': [['Shangrao', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Scorțoasa', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Shangrao property:country ?k } UNION { resource:Scorțoasa property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148 Q218
SYSTEM
People's Republic of China, Romania
Q148 Q218
OR((Q363479,P17,c(Q15617994)), (Q2716411,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q363479
relation P17
action find
entity Q2716411
relation P17
type Q15617994
[ANSWERS] are Shangrao or Scorțoasa present in
{'OR': [['Q363479', 'P17', {'concept': 'Q15617994'}], ['Q2716411', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q363479 property:P17 ?k } UNION { resource:Q2716411 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
People's Republic of China Romania
People's Republic of China and Romania are Shangrao or Scorțoasa present in
People's Republic of China Romania
action filter_type
action union
action find
entity Shangrao
relation country
action find
entity Scorțoasa
relation country
type designation for an administrative territorial entity
{'OR': [['Shangrao', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Scorțoasa', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Shangrao property:country ?k } UNION { resource:Scorțoasa property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19508929 Q363479
P17
Q15617994
USER
Which administrative territories are Shangrao or Scheepsjager present in ?
OR((Q363479,P17,c(Q15617994)), (Q19508929,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q363479
relation P17
action find
entity Q19508929
relation P17
type Q15617994
{'OR': [['Q363479', 'P17', {'concept': 'Q15617994'}], ['Q19508929', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?s ) { ( resource:Q363479 ) ( resource:Q19508929 ) } . ?s property:P17 ?a } . ?a rdf:type ontology:Q15617994 }
Scheepsjager Shangrao
action filter_type
action union
action find
entity Shangrao
relation country
action find
entity Scheepsjager
relation country
type designation for an administrative territorial entity
{'OR': [['Shangrao', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Scheepsjager', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?s ) { ( resource:Shangrao ) ( resource:Scheepsjager ) } . ?s property:country ?a } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148 Q55
SYSTEM
People's Republic of China, Netherlands
Q148 Q55
OR((Q363479,P17,c(Q15617994)), (Q19508929,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q363479
relation P17
action find
entity Q19508929
relation P17
type Q15617994
Shangrao or Scheepsjager are the [ANSWERS]
{'OR': [['Q363479', 'P17', {'concept': 'Q15617994'}], ['Q19508929', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?s ) { ( resource:Q363479 ) ( resource:Q19508929 ) } . ?s property:P17 ?a } . ?a rdf:type ontology:Q15617994 }
People's Republic of China Netherlands
Shangrao or Scheepsjager are the People's Republic of China and Netherlands
People's Republic of China Netherlands
action filter_type
action union
action find
entity Shangrao
relation country
action find
entity Scheepsjager
relation country
type designation for an administrative territorial entity
{'OR': [['Shangrao', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Scheepsjager', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?s ) { ( resource:Shangrao ) ( resource:Scheepsjager ) } . ?s property:country ?a } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]