Simple Question (Direct)
Simple Question
Q123663
P19
Q56061
USER
Which administrative territory is the place of birth of Ludwig Georg Courvoisier ?
(Q123663,P19,c(Q56061))
action filter_type
action find
entity Q123663
relation P19
type Q56061
['Q123663', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q123663 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Ludwig Georg Courvoisier
action filter_type
action find
entity Ludwig Georg Courvoisier
relation place of birth
type administrative territorial entity
['Ludwig Georg Courvoisier', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Ludwig_Georg_Courvoisier property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q78
SYSTEM
Basel
Q78
(Q123663,P19,c(Q56061))
action filter_type
action find
entity Q123663
relation P19
type Q56061
[ANSWER] is the place of birth of Ludwig Georg Courvoisier
['Q123663', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q123663 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Basel
Basel is the place of birth of Ludwig Georg Courvoisier
Basel
action filter_type
action find
entity Ludwig Georg Courvoisier
relation place of birth
type administrative territorial entity
['Ludwig Georg Courvoisier', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Ludwig_Georg_Courvoisier property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q123663
P27
Q15617994
USER
Which administrative territory is Ludwig Georg Courvoisier a civilian of ?
(Q123663,P27,c(Q15617994))
action filter_type
action find
entity Q123663
relation P27
type Q15617994
['Q123663', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q123663 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Ludwig Georg Courvoisier
action filter_type
action find
entity Ludwig Georg Courvoisier
relation country of citizenship
type designation for an administrative territorial entity
['Ludwig Georg Courvoisier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Ludwig_Georg_Courvoisier property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(Q123663,P27,c(Q15617994))
action filter_type
action find
entity Q123663
relation P27
type Q15617994
[ANSWER] is Ludwig Georg Courvoisier a civilian of
['Q123663', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q123663 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Switzerland
Switzerland is Ludwig Georg Courvoisier a civilian of
Switzerland
action filter_type
action find
entity Ludwig Georg Courvoisier
relation country of citizenship
type designation for an administrative territorial entity
['Ludwig Georg Courvoisier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Ludwig_Georg_Courvoisier property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q123663
P106
Q12737077
USER
Which occupations have that person as his/her 's career ?
(Q39,P106,c(Q12737077))
action filter_type
action find
entity Q123663
relation P106
type Q12737077
['Q39', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q123663 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Ludwig Georg Courvoisier
action filter_type
action find
entity Ludwig Georg Courvoisier
relation occupation
type occupation
['Switzerland', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Ludwig_Georg_Courvoisier property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q774306 Q1622272 Q497294
SYSTEM
surgeon, university teacher, lepidopterist
Q497294 Q774306 Q3055126 Q1622272
(Q39,P106,c(Q12737077))
action filter_type
action find
entity Q123663
relation P106
type Q12737077
[ANSWERS] have that person as his/her 's career
['Q39', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q123663 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
lepidopterist surgeon entomologist university teacher
Surgeon, university teacher and lepidopterist have that person as his/her 's career
surgeon university teacher lepidopterist
action filter_type
action find
entity Ludwig Georg Courvoisier
relation occupation
type occupation
['Switzerland', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Ludwig_Georg_Courvoisier property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q706705
P106
Q502895
USER
Do Jürgen Rosenthal have the profession of those occupations ?
(Q706705,P106,Q774306) (Q706705,P106,Q1622272) (Q706705,P106,Q497294)
action is_in
entity prev_answer
action find
entity Q706705
relation P106
['Q706705', 'P106', 'Q774306'] ['Q706705', 'P106', 'Q1622272'] ['Q706705', 'P106', 'Q497294']
ASK WHERE { VALUES ( ?g ) { ( resource:Q497294 ) ( resource:Q774306 ) ( resource:Q3055126 ) } . resource:Q706705 property:P106 ?g }
Jürgen Rosenthal
action is_in
entity prev_answer
action find
entity Jürgen Rosenthal
relation occupation
['Jürgen Rosenthal', 'occupation', 'surgeon'] ['Jürgen Rosenthal', 'occupation', 'university teacher'] ['Jürgen Rosenthal', 'occupation', 'lepidopterist']
ASK WHERE { VALUES ( ?g ) { ( resource:lepidopterist ) ( resource:surgeon ) ( resource:entomologist ) } . resource:Jürgen_Rosenthal property:occupation ?g }
[]
common name
SYSTEM
NO
(Q706705,P106,Q774306) (Q706705,P106,Q1622272) (Q706705,P106,Q497294)
action is_in
entity prev_answer
action find
entity Q706705
relation P106
[ANSWER]
['Q706705', 'P106', 'Q774306'] ['Q706705', 'P106', 'Q1622272'] ['Q706705', 'P106', 'Q497294']
ASK WHERE { VALUES ( ?g ) { ( resource:Q497294 ) ( resource:Q774306 ) ( resource:Q3055126 ) } . resource:Q706705 property:P106 ?g }
No
action is_in
entity prev_answer
action find
entity Jürgen Rosenthal
relation occupation
['Jürgen Rosenthal', 'occupation', 'surgeon'] ['Jürgen Rosenthal', 'occupation', 'university teacher'] ['Jürgen Rosenthal', 'occupation', 'lepidopterist']
ASK WHERE { VALUES ( ?g ) { ( resource:lepidopterist ) ( resource:surgeon ) ( resource:entomologist ) } . resource:Jürgen_Rosenthal property:occupation ?g }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11802131 Q123663
P937 P20
Q56061
USER
Which administrative territories did the expiration of Ludwig Georg Courvoisier occur or are the work locations of George Blucher Heneage Marton ?
OR((Q123663,P20,c(Q56061)), (Q11802131,P937,c(Q56061)))
action filter_type
action union
action find
entity Q123663
relation P20
action find
entity Q11802131
relation P937
type Q56061
{'OR': [['Q123663', 'P20', {'concept': 'Q56061'}], ['Q11802131', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q123663 property:P20 ?s } UNION { resource:Q11802131 property:P937 ?s } } . ?s rdf:type ontology:Q56061 }
George Blucher Heneage Marton Ludwig Georg Courvoisier
action filter_type
action union
action find
entity Ludwig Georg Courvoisier
relation place of death
action find
entity George Blucher Heneage Marton
relation work location
type administrative territorial entity
{'OR': [['Ludwig Georg Courvoisier', 'place of death', {'concept': 'administrative territorial entity'}], ['George Blucher Heneage Marton', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Ludwig_Georg_Courvoisier property:place_of_death ?s } UNION { resource:George_Blucher_Heneage_Marton property:work_location ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84 Q78
SYSTEM
London, Basel
Q84 Q78
OR((Q123663,P20,c(Q56061)), (Q11802131,P937,c(Q56061)))
action filter_type
action union
action find
entity Q123663
relation P20
action find
entity Q11802131
relation P937
type Q56061
The expiration of Ludwig Georg Courvoisier occurred or are the work locations of George Blucher Heneage Marton in [ANSWERS]
{'OR': [['Q123663', 'P20', {'concept': 'Q56061'}], ['Q11802131', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q123663 property:P20 ?s } UNION { resource:Q11802131 property:P937 ?s } } . ?s rdf:type ontology:Q56061 }
London Basel
The expiration of Ludwig Georg Courvoisier occurred or are the work locations of George Blucher Heneage Marton in London and Basel
London Basel
action filter_type
action union
action find
entity Ludwig Georg Courvoisier
relation place of death
action find
entity George Blucher Heneage Marton
relation work location
type administrative territorial entity
{'OR': [['Ludwig Georg Courvoisier', 'place of death', {'concept': 'administrative territorial entity'}], ['George Blucher Heneage Marton', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Ludwig_Georg_Courvoisier property:place_of_death ?s } UNION { resource:George_Blucher_Heneage_Marton property:work_location ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1427
Q878123 Q18608583
USER
How many racings and recurring sporting events have start point at that administrative territory ?
(c(Q878123),P1427,Q78) (c(Q18608583),P1427,Q78) (c(Q878123),P1427,Q84) (c(Q18608583),P1427,Q84) (c(Q878123),P1427,Q78) (c(Q18608583),P1427,Q78)
[{'concept': 'Q878123'}, 'P1427', 'Q78'] [{'concept': 'Q18608583'}, 'P1427', 'Q78'] [{'concept': 'Q878123'}, 'P1427', 'Q84'] [{'concept': 'Q18608583'}, 'P1427', 'Q84'] [{'concept': 'Q878123'}, 'P1427', 'Q78'] [{'concept': 'Q18608583'}, 'P1427', 'Q78']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1427 resource:Q78 } UNION { ?y property:P1427 resource:Q78 } UNION { ?z property:P1427 resource:Q1281978 } UNION { ?y property:P1427 resource:Q1281978 } UNION { ?z property:P1427 resource:Q78 } UNION { ?y property:P1427 resource:Q78 } } . ?z rdf:type ontology:Q878123 . ?y rdf:type ontology:Q18608583 }
[{'concept': 'racing'}, 'start point', 'Basel'] [{'concept': 'recurring sporting event'}, 'start point', 'Basel'] [{'concept': 'racing'}, 'start point', 'London'] [{'concept': 'recurring sporting event'}, 'start point', 'London'] [{'concept': 'racing'}, 'start point', 'Basel'] [{'concept': 'recurring sporting event'}, 'start point', 'Basel']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:start_point resource:Basel } UNION { ?y property:start_point resource:Basel } UNION { ?z property:start_point resource:London } UNION { ?y property:start_point resource:London } UNION { ?z property:start_point resource:Basel } UNION { ?y property:start_point resource:Basel } } . ?z rdf:type ontology:racing . ?y rdf:type ontology:recurring_sporting_event }
[]
racing recurring sporting event
Quantitative|Count|Mult. entity type|Clarification
Q78
SYSTEM
Did you mean Basel ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1427 resource:Q78 } UNION { ?y property:P1427 resource:Q78 } UNION { ?z property:P1427 resource:Q1281978 } UNION { ?y property:P1427 resource:Q1281978 } UNION { ?z property:P1427 resource:Q78 } UNION { ?y property:P1427 resource:Q78 } } . ?z rdf:type ontology:Q878123 . ?y rdf:type ontology:Q18608583 }
Did you mean Basel ?
Basel
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:start_point resource:Basel } UNION { ?y property:start_point resource:Basel } UNION { ?z property:start_point resource:London } UNION { ?y property:start_point resource:London } UNION { ?z property:start_point resource:Basel } UNION { ?y property:start_point resource:Basel } } . ?z rdf:type ontology:racing . ?y rdf:type ontology:recurring_sporting_event }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q878123),P1427,Q78) (c(Q18608583),P1427,Q78) (c(Q878123),P1427,Q84) (c(Q18608583),P1427,Q84) (c(Q878123),P1427,Q78) (c(Q18608583),P1427,Q78)
[{'concept': 'Q878123'}, 'P1427', 'Q78'] [{'concept': 'Q18608583'}, 'P1427', 'Q78'] [{'concept': 'Q878123'}, 'P1427', 'Q84'] [{'concept': 'Q18608583'}, 'P1427', 'Q84'] [{'concept': 'Q878123'}, 'P1427', 'Q78'] [{'concept': 'Q18608583'}, 'P1427', 'Q78']
[{'concept': 'racing'}, 'start point', 'Basel'] [{'concept': 'recurring sporting event'}, 'start point', 'Basel'] [{'concept': 'racing'}, 'start point', 'London'] [{'concept': 'recurring sporting event'}, 'start point', 'London'] [{'concept': 'racing'}, 'start point', 'Basel'] [{'concept': 'recurring sporting event'}, 'start point', 'Basel']
[]
SYSTEM
2 racings and 1 recurring sporting events
Q20638168 Q374222 Q20638166
(c(Q878123),P1427,Q78) (c(Q18608583),P1427,Q78) (c(Q878123),P1427,Q84) (c(Q18608583),P1427,Q84) (c(Q878123),P1427,Q78) (c(Q18608583),P1427,Q78)
[ANSWER]
[{'concept': 'Q878123'}, 'P1427', 'Q78'] [{'concept': 'Q18608583'}, 'P1427', 'Q78'] [{'concept': 'Q878123'}, 'P1427', 'Q84'] [{'concept': 'Q18608583'}, 'P1427', 'Q84'] [{'concept': 'Q878123'}, 'P1427', 'Q78'] [{'concept': 'Q18608583'}, 'P1427', 'Q78']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1427 resource:Q78 } UNION { ?y property:P1427 resource:Q78 } UNION { ?z property:P1427 resource:Q1281978 } UNION { ?y property:P1427 resource:Q1281978 } UNION { ?z property:P1427 resource:Q78 } UNION { ?y property:P1427 resource:Q78 } } . ?z rdf:type ontology:Q878123 . ?y rdf:type ontology:Q18608583 }
1982 Tour de France, Stage 2 1982 Tour de France 1982 Tour de France, Prologue
2 racings and 1 recurring sporting events
[{'concept': 'racing'}, 'start point', 'Basel'] [{'concept': 'recurring sporting event'}, 'start point', 'Basel'] [{'concept': 'racing'}, 'start point', 'London'] [{'concept': 'recurring sporting event'}, 'start point', 'London'] [{'concept': 'racing'}, 'start point', 'Basel'] [{'concept': 'recurring sporting event'}, 'start point', 'Basel']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:start_point resource:Basel } UNION { ?y property:start_point resource:Basel } UNION { ?z property:start_point resource:London } UNION { ?y property:start_point resource:London } UNION { ?z property:start_point resource:Basel } UNION { ?y property:start_point resource:Basel } } . ?z rdf:type ontology:racing . ?y rdf:type ontology:recurring_sporting_event }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q33788
P138
Q15617994 Q874405 Q192611
USER
Which administrative territories are more number of social groups or constituencies named after than New Caledonia ?
(c(Q874405)|c(Q192611),P138,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q874405
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q192611
action count
action filter_multi_types
action find_reverse
entity Q33788
relation P138
type Q874405
type Q192611
[[{'concept': 'Q874405'}, {'concept': 'Q192611'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) ?c WHERE { { ?g property:P138 ?c . ?c rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q874405 } UNION { ?c rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q192611 . ?g property:P138 ?c } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:P138 resource:Q33788 . { { ?x rdf:type ontology:Q874405 } UNION { ?x rdf:type ontology:Q192611 } } } } . FILTER ( ?s > ?b ) }
New Caledonia
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type social group
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type constituency
action count
action filter_multi_types
action find_reverse
entity New Caledonia
relation named after
type social group
type constituency
[[{'concept': 'social group'}, {'concept': 'constituency'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) ?c WHERE { { ?g property:named_after ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:social_group } UNION { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:constituency . ?g property:named_after ?c } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:named_after resource:New_Caledonia . { { ?x rdf:type ontology:social_group } UNION { ?x rdf:type ontology:constituency } } } } . FILTER ( ?s > ?b ) }
[]
designation for an administrative territorial entity social group constituency
Q1799797 Q2396564 Q968
SYSTEM
Wolfskehlen, Mallee, Warburg
Q1799797 Q2396564 Q968
(c(Q874405)|c(Q192611),P138,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q874405
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q192611
action count
action filter_multi_types
action find_reverse
entity Q33788
relation P138
type Q874405
type Q192611
[ANSWERS] are more number of social groups or constituencies named after than New Caledonia
[[{'concept': 'Q874405'}, {'concept': 'Q192611'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) ?c WHERE { { ?g property:P138 ?c . ?c rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q874405 } UNION { ?c rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q192611 . ?g property:P138 ?c } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:P138 resource:Q33788 . { { ?x rdf:type ontology:Q874405 } UNION { ?x rdf:type ontology:Q192611 } } } } . FILTER ( ?s > ?b ) }
Wolfskehlen Mallee Warburg
Wolfskehlen, Mallee and Warburg are more number of social groups or constituencies named after than New Caledonia
Wolfskehlen Mallee Warburg
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type social group
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type constituency
action count
action filter_multi_types
action find_reverse
entity New Caledonia
relation named after
type social group
type constituency
[[{'concept': 'social group'}, {'concept': 'constituency'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) ?c WHERE { { ?g property:named_after ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:social_group } UNION { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:constituency . ?g property:named_after ?c } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:named_after resource:New_Caledonia . { { ?x rdf:type ontology:social_group } UNION { ?x rdf:type ontology:constituency } } } } . FILTER ( ?s > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q856860
P559
Q56061 Q34442 Q83620
USER
Which administrative territories are a terminus for around the same number of roads or thoroughfares as Hammond ?
(c(Q34442)|c(Q83620),P559,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q856860
relation P559
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?w WHERE { VALUES ( ?b ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?i rdf:type ?b } GROUP BY ?w } . FILTER ( ?d = ?u ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P559 resource:Q856860 . { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } } } } }
Hammond
action approx
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Hammond
relation terminus
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?w WHERE { VALUES ( ?b ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?i rdf:type ?b } GROUP BY ?w } . FILTER ( ?d = ?u ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:terminus resource:Hammond . { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:road ) ( ontology:thoroughfare ) } } } } }
[]
administrative territorial entity road thoroughfare
Q65 Q727 Q33959
SYSTEM
Los Angeles, Amsterdam, Nice
Q3051477 Q1020217 Q3112707 Q837211 Q69639 Q375314 Q12439 Q2814 Q541055 Q82490 Q4825403 Q172157 Q575557 Q985313 Q687333 Q932159 Q3469728 Q796625 Q185453 Q588804 Q130191 Q5902931 Q723372 Q167155 Q2272 Q7811572 Q7651719 Q134620 Q992420 Q556989 Q1011611 Q727 Q2065223 Q42159 Q7986745 Q1009428 Q1011221 Q7050868 Q24826 Q6509 Q28327 Q5477618 Q4356873 Q33959 Q11839080 Q586 Q585 Q1017331 Q35433 Q66208 Q2796951 Q848909 Q1420136 Q754868 Q687945 Q125080 Q782155 Q12714367 Q49218 Q100 Q2734845 Q6820370 Q1020951 Q1616042 Q643944 Q257034 Q1571025 Q756103 Q25330 Q856860 Q517381 Q190847 Q1248150 Q2073801 Q1781385 Q1759693 Q2300663 Q2703030 Q794802 Q646784 Q79499 Q6275457 Q375905 Q10561690 Q643160 Q1735 Q17872 Q129610 Q766594 Q2086787 Q79804 Q895452 Q40325 Q1229951 Q953719 Q2290 Q12191 Q237253 Q485186 Q634172 Q522362 Q1729 Q790938 Q865872 Q65
(c(Q34442)|c(Q83620),P559,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q856860
relation P559
type Q34442
type Q83620
[ANSWERS] are a terminus for around the same number of roads or thoroughfares as Hammond
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?w WHERE { VALUES ( ?b ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?i rdf:type ?b } GROUP BY ?w } . FILTER ( ?d = ?u ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P559 resource:Q856860 . { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } } } } }
Ellewoutsdijk Minehead Sedbury Scheveningen Göschenen Folkestone Detroit Halle (Saale) Oijen Lyme Regis Austrepollen Winchester Grand Tower Ingleton Middleton-by-Wirksworth Hart Salford Quays Edale Multan Badrinath Norwich Horda, Norway Narva-Jõesuu Kalamazoo Skien Tobermory, Ontario Svartnes Jyväskylä Fjærland Ankeny Portpatrick Amsterdam Port Grimaud Hanam West Vale Drymen Kincardine Nordrepollen Liverpool Burgas Örnsköldsvik Frafjord Mariehäll Nice Akdere, Silifke Bonn Oslo Westport, County Mayo Saint-Rhémy-en-Bosses Frutigen Cumberland Gap Fort William Herøya Cumberland San Bernardino Vaasa Jarrow Granvin Rochester Boston Henley-in-Arden Merritton, Ontario Ilkley Hessle Asaluyeh Kemble Mullan Lewes Trenton Hammond Dillenburg Alexandroupoli Wallsend Helmsley Björkhagen South Boston Gaylord Kilsby Otira Moffat Helena Jong, Norway Deerfield Lilla Alby Farnham Innsbruck Alice Springs Galway Bewdley Manitou Springs Sitka Bowling, West Dunbartonshire Springfield L'Estaque South Haven Porsgrunn Nantes Great Yarmouth Key West Banihal Bad Säckingen Erfurt Aviemore Birstall Los Angeles
Los Angeles, Amsterdam and Nice are a terminus for around the same number of roads or thoroughfares as Hammond
Los Angeles Amsterdam Nice
action approx
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Hammond
relation terminus
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?w WHERE { VALUES ( ?b ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?i rdf:type ?b } GROUP BY ?w } . FILTER ( ?d = ?u ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:terminus resource:Hammond . { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:road ) ( ontology:thoroughfare ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q3001
P559
Q56061 Q34442 Q83620
USER
And how about Paramaribo?
(c(Q34442)|c(Q83620),P559,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q3001
relation P559
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?f WHERE { { ?f rdf:type ontology:Q56061 . ?k rdf:type ontology:Q34442 . ?k property:P559 ?f } UNION { ?k property:P559 ?f . ?f rdf:type ontology:Q56061 . ?k rdf:type ontology:Q83620 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P559 resource:Q3001 . { { ?c rdf:type ontology:Q34442 } UNION { ?c rdf:type ontology:Q83620 } } } } . FILTER ( ?n = ?r ) }
Paramaribo
action approx
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Paramaribo
relation terminus
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?f WHERE { { ?f rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:road . ?k property:terminus ?f } UNION { ?k property:terminus ?f . ?f rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:thoroughfare } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:terminus resource:Paramaribo . { { ?c rdf:type ontology:road } UNION { ?c rdf:type ontology:thoroughfare } } } } . FILTER ( ?n = ?r ) }
[]
administrative territorial entity road thoroughfare
Q3001 Q1318695 Q12892
SYSTEM
Paramaribo, Apoera, Antwerp
Q3001 Q1318695 Q12892
(c(Q34442)|c(Q83620),P559,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q3001
relation P559
type Q34442
type Q83620
[ANSWERS]
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?f WHERE { { ?f rdf:type ontology:Q56061 . ?k rdf:type ontology:Q34442 . ?k property:P559 ?f } UNION { ?k property:P559 ?f . ?f rdf:type ontology:Q56061 . ?k rdf:type ontology:Q83620 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P559 resource:Q3001 . { { ?c rdf:type ontology:Q34442 } UNION { ?c rdf:type ontology:Q83620 } } } } . FILTER ( ?n = ?r ) }
Paramaribo Apoera Antwerp
Paramaribo Apoera Antwerp
action approx
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Paramaribo
relation terminus
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?f WHERE { { ?f rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:road . ?k property:terminus ?f } UNION { ?k property:terminus ?f . ?f rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:thoroughfare } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:terminus resource:Paramaribo . { { ?c rdf:type ontology:road } UNION { ?c rdf:type ontology:thoroughfare } } } } . FILTER ( ?n = ?r ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1582752 Q1622272
P161 P417
Q502895
USER
Which people are the patron saint of university teacher or starred in Torrente 2: Misión en Marbella ?
OR((Q1622272,P417,c(Q502895)), (Q1582752,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1622272
relation P417
action find
entity Q1582752
relation P161
type Q502895
{'OR': [['Q1622272', 'P417', {'concept': 'Q502895'}], ['Q1582752', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1622272 property:P417 ?p } UNION { resource:Q1582752 property:P161 ?p } } . ?p rdf:type ontology:Q502895 }
Torrente 2: Misión en Marbella university teacher
action filter_type
action union
action find
entity university teacher
relation patron saint
action find
entity Torrente 2: Misión en Marbella
relation cast member
type common name
{'OR': [['university teacher', 'patron saint', {'concept': 'common name'}], ['Torrente 2: Misión en Marbella', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { { resource:university_teacher property:patron_saint ?p } UNION { resource:Torrente_2:_Misión_en_Marbella property:cast_member ?p } } . ?p rdf:type ontology:common_name }
[]
common name
Q272435 Q3186376 Q509900 Q6294057 Q3002897 Q9438 Q3361662 Q290531 Q129629 Q4350356
SYSTEM
Some of them are Rosa Maria Sardà, José Luis Moreno Ruiz, Santiago Segura, José Sánchez Mota, Cristina Tàrrega, Thomas Aquinas, Paloma Cela, Inés Sastre, Tony Leblanc, Gabino Diego
Q3186376 Q509900 Q3002897 Q272435 Q3361662 Q290531 Q129629 Q264754 Q727726 Q3309054 Q9438 Q3941336 Q4350356 Q6294057 Q2834672
OR((Q1622272,P417,c(Q502895)), (Q1582752,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1622272
relation P417
action find
entity Q1582752
relation P161
type Q502895
[ANSWERS] are the patron saint of university teacher or starred in Torrente 2: Misión en Marbella
{'OR': [['Q1622272', 'P417', {'concept': 'Q502895'}], ['Q1582752', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1622272 property:P417 ?p } UNION { resource:Q1582752 property:P161 ?p } } . ?p rdf:type ontology:Q502895 }
José Luis Moreno Ruiz Santiago Segura Cristina Tàrrega Rosa Maria Sardà Paloma Cela Inés Sastre Tony Leblanc Ariadna Gil José Luis López Vázquez Juanito Navarro Rubio Thomas Aquinas Rosanna Walls Gabino Diego José Sánchez Mota Alexis Valdés
Rosa Maria Sardà, José Luis Moreno Ruiz, Santiago Segura, José Sánchez Mota, Cristina Tàrrega, Thomas Aquinas, Paloma Cela, Inés Sastre, Tony Leblanc and Gabino Diego are the patron saint of university teacher or starred in Torrente 2: Misión en Marbella
Rosa Maria Sardà José Luis Moreno Ruiz Santiago Segura José Sánchez Mota Cristina Tàrrega Thomas Aquinas Paloma Cela Inés Sastre Tony Leblanc Gabino Diego
action filter_type
action union
action find
entity university teacher
relation patron saint
action find
entity Torrente 2: Misión en Marbella
relation cast member
type common name
{'OR': [['university teacher', 'patron saint', {'concept': 'common name'}], ['Torrente 2: Misión en Marbella', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { { resource:university_teacher property:patron_saint ?p } UNION { resource:Torrente_2:_Misión_en_Marbella property:cast_member ?p } } . ?p rdf:type ontology:common_name }
[]