Simple Question (Direct)
Simple Question
Q798119
P559
Q83620
USER
Which thoroughfare is the endpoint for U.S. Route 9 in Delaware ?
(Q798119,P559,c(Q83620))
action filter_type
action find
entity Q798119
relation P559
type Q83620
['Q798119', 'P559', {'concept': 'Q83620'}]
SELECT DISTINCT ?x WHERE { resource:Q798119 property:P559 ?x . ?x rdf:type ontology:Q83620 }
U.S. Route 9 in Delaware
action filter_type
action find
entity U.S. Route 9 in Delaware
relation terminus
type thoroughfare
['U.S. Route 9 in Delaware', 'terminus', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?x WHERE { resource:U.S._Route_9_in_Delaware property:terminus ?x . ?x rdf:type ontology:thoroughfare }
[]
thoroughfare
Q798131
SYSTEM
U.S. Route 13 in Delaware
Q798131
(Q798119,P559,c(Q83620))
action filter_type
action find
entity Q798119
relation P559
type Q83620
[ANSWER] is the endpoint for U.S. Route 9 in Delaware
['Q798119', 'P559', {'concept': 'Q83620'}]
SELECT DISTINCT ?x WHERE { resource:Q798119 property:P559 ?x . ?x rdf:type ontology:Q83620 }
U.S. Route 13 in Delaware
U.S. Route 13 in Delaware is the endpoint for U.S. Route 9 in Delaware
U.S. Route 13 in Delaware
action filter_type
action find
entity U.S. Route 9 in Delaware
relation terminus
type thoroughfare
['U.S. Route 9 in Delaware', 'terminus', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?x WHERE { resource:U.S._Route_9_in_Delaware property:terminus ?x . ?x rdf:type ontology:thoroughfare }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q22667 Q223557 Q83620
USER
Which thoroughfares are a component of atleast 1 railroads and physical objects ?
(c(Q83620),P361,c(Q22667)|c(Q223557))
action atleast
action union
action find_tuple_counts
relation P361
type Q83620
type Q22667
action find_tuple_counts
relation P361
type Q83620
type Q223557
value 1
[{'concept': 'Q83620'}, 'P361', [{'concept': 'Q22667'}, {'concept': 'Q223557'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?j ) WHERE { { ?q property:P361 ?x . ?q rdf:type ontology:Q83620 . ?x rdf:type ontology:Q22667 } UNION { ?q property:P361 ?x . ?q rdf:type ontology:Q83620 . ?x rdf:type ontology:Q223557 } } GROUP BY ?q } . FILTER ( ?j >= 1 ) }
action atleast
action union
action find_tuple_counts
relation part of
type thoroughfare
type railroad
action find_tuple_counts
relation part of
type thoroughfare
type physical object
value 1
[{'concept': 'thoroughfare'}, 'part of', [{'concept': 'railroad'}, {'concept': 'physical object'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?j ) WHERE { { ?q property:part_of ?x . ?q rdf:type ontology:thoroughfare . ?x rdf:type ontology:railroad } UNION { ?q property:part_of ?x . ?q rdf:type ontology:thoroughfare . ?x rdf:type ontology:physical_object } } GROUP BY ?q } . FILTER ( ?j >= 1 ) }
[]
railroad physical object thoroughfare
Q6964273 Q5025789 Q4979520
SYSTEM
Nant Ffrancon Pass, Camden Line, Brunswick Line
Q5025789 Q4979520 Q6964273 Q15145537 Q7163198
(c(Q83620),P361,c(Q22667)|c(Q223557))
action atleast
action union
action find_tuple_counts
relation P361
type Q83620
type Q22667
action find_tuple_counts
relation P361
type Q83620
type Q223557
value 1
[ANSWERS] are a component of atleast 1 railroads and physical objects
[{'concept': 'Q83620'}, 'P361', [{'concept': 'Q22667'}, {'concept': 'Q223557'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?j ) WHERE { { ?q property:P361 ?x . ?q rdf:type ontology:Q83620 . ?x rdf:type ontology:Q22667 } UNION { ?q property:P361 ?x . ?q rdf:type ontology:Q83620 . ?x rdf:type ontology:Q223557 } } GROUP BY ?q } . FILTER ( ?j >= 1 ) }
Camden Line Brunswick Line Nant Ffrancon Pass light rail line Penn Line
Nant Ffrancon Pass, Camden Line and Brunswick Line are a component of atleast 1 railroads and physical objects
Nant Ffrancon Pass Camden Line Brunswick Line
action atleast
action union
action find_tuple_counts
relation part of
type thoroughfare
type railroad
action find_tuple_counts
relation part of
type thoroughfare
type physical object
value 1
[{'concept': 'thoroughfare'}, 'part of', [{'concept': 'railroad'}, {'concept': 'physical object'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?j ) WHERE { { ?q property:part_of ?x . ?q rdf:type ontology:thoroughfare . ?x rdf:type ontology:railroad } UNION { ?q property:part_of ?x . ?q rdf:type ontology:thoroughfare . ?x rdf:type ontology:physical_object } } GROUP BY ?q } . FILTER ( ?j >= 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q5108630
P669
Q83620 Q16970
USER
Which churches are located on lesser number of thoroughfares than Christ's Church Cathedral ?
(c(Q16970),P669,c(Q83620))
action less
action find_tuple_counts
relation P669
type Q16970
type Q83620
action count
action filter_type
action find
entity Q5108630
relation P669
type Q83620
[{'concept': 'Q16970'}, 'P669', {'concept': 'Q83620'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?j ) WHERE { ?a property:P669 ?l . ?a rdf:type ontology:Q16970 . ?l rdf:type ontology:Q83620 } GROUP BY ?a } . FILTER ( ?j < ?k ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { resource:Q5108630 property:P669 ?f . ?f rdf:type ontology:Q83620 } } }
Christ's Church Cathedral
action less
action find_tuple_counts
relation located on street
type church
type thoroughfare
action count
action filter_type
action find
entity Christ's Church Cathedral
relation located on street
type thoroughfare
[{'concept': 'church'}, 'located on street', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?j ) WHERE { ?a property:located_on_street ?l . ?a rdf:type ontology:church . ?l rdf:type ontology:thoroughfare } GROUP BY ?a } . FILTER ( ?j < ?k ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { resource:Christ's_Church_Cathedral property:located_on_street ?f . ?f rdf:type ontology:thoroughfare } } }
[]
thoroughfare church
Q1236689 Q1477827 Q738015
SYSTEM
Lund Cathedral, Saint James's Church, Helsinki Cathedral
Q2942927 Q1563071 Q1493222 Q1477827 Q880381 Q1254795 Q998451 Q15042147 Q2942460 Q2384843 Q2124804 Q2407691 Q201935 Q623558 Q745460 Q962195 Q624556 Q2395780 Q1236689 Q1754571 Q476516 Q2002465 Q1537302 Q1049728 Q656738 Q738015 Q3916007 Q2942475 Q666874 Q671066 Q2942882 Q1423005 Q1515818 Q1257632 Q1136951 Q1285196
(c(Q16970),P669,c(Q83620))
action less
action find_tuple_counts
relation P669
type Q16970
type Q83620
action count
action filter_type
action find
entity Q5108630
relation P669
type Q83620
[ANSWERS] are located on lesser number of thoroughfares than Christ's Church Cathedral
[{'concept': 'Q16970'}, 'P669', {'concept': 'Q83620'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?j ) WHERE { ?a property:P669 ?l . ?a rdf:type ontology:Q16970 . ?l rdf:type ontology:Q83620 } GROUP BY ?a } . FILTER ( ?j < ?k ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { resource:Q5108630 property:P669 ?f . ?f rdf:type ontology:Q83620 } } }
Saint Stefan Cathedral Le Mans Cathedral Alexander Nevsky Cathedral, Paris Saint James's Church Sacred Heart Church St. Mark's Church Châlons Cathedral St. Eric's Cathedral, Stockholm Ukrainian Catholic Cathedral Saint Nicholas' Church, Shanghai Versailles Cathedral American Cathedral in Paris Oulu Cathedral Oude Kerk Strasbourg Cathedral Cathedral of Saint Bavo St. Patrick's Cathedral St. Gertrude's Cathedral Lund Cathedral Ludwigskirche Rouen Cathedral Notre-Dame Basilica-Cathedral Le Puy Cathedral Rennes Cathedral Bordeaux Cathedral Helsinki Cathedral Lübeck Cathedral cathédrale Sainte-Croix-Saint-Jean-des-Arméniens St. Anthony of Padua Cathedral, Breda Metz Cathedral Laval Cathedral Nantes Cathedral Gertrudiskerk Holy Trinity Cathedral Nancy Cathedral St. Sava Church, Paris
Lund Cathedral, Saint James's Church and Helsinki Cathedral are located on lesser number of thoroughfares than Christ's Church Cathedral
Lund Cathedral Saint James's Church Helsinki Cathedral
action less
action find_tuple_counts
relation located on street
type church
type thoroughfare
action count
action filter_type
action find
entity Christ's Church Cathedral
relation located on street
type thoroughfare
[{'concept': 'church'}, 'located on street', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?j ) WHERE { ?a property:located_on_street ?l . ?a rdf:type ontology:church . ?l rdf:type ontology:thoroughfare } GROUP BY ?a } . FILTER ( ?j < ?k ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { resource:Christ's_Church_Cathedral property:located_on_street ?f . ?f rdf:type ontology:thoroughfare } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1236689
P119
Q502895
USER
Which people have that church as his/her tomb ?
(c(Q502895),P119,Q1236689)
action filter_type
action find_reverse
entity Q1236689
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q1236689']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P119 resource:Q1236689 }
Lund Cathedral
action filter_type
action find_reverse
entity Lund Cathedral
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Lund Cathedral']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:place_of_burial resource:Lund_Cathedral }
[]
common name
Clarification for simple ques.
Q1477827
SYSTEM
Did you mean Saint James's Church ?
Q1236689 Q1477827 Q738015
(c(Q502895),P119,Q1236689) (c(Q502895),P119,Q1477827) (c(Q502895),P119,Q738015)
[ANSWER]
[{'concept': 'Q502895'}, 'P119', 'Q1236689'] [{'concept': 'Q502895'}, 'P119', 'Q1477827'] [{'concept': 'Q502895'}, 'P119', 'Q738015']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P119 resource:Q1236689 }
Lund Cathedral Saint James's Church Helsinki Cathedral
Did you mean Saint James's Church ?
Saint James's Church
[{'concept': 'common name'}, 'place of burial', 'Lund Cathedral'] [{'concept': 'common name'}, 'place of burial', "Saint James's Church"] [{'concept': 'common name'}, 'place of burial', 'Helsinki Cathedral']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:place_of_burial resource:Lund_Cathedral }
[]
Simple Question (Coreferenced)
USER
No, I meant Lund Cathedral. Could you tell me the answer for that?
(c(Q502895),P119,Q1236689)
Q1236689
[{'concept': 'Q502895'}, 'P119', 'Q1236689']
[{'concept': 'common name'}, 'place of burial', 'Lund Cathedral']
[]
Q896571 Q1769511 Q6079630
SYSTEM
Olof Celsius, Peder Winstrup, Eberhard Rosenblad
Q6190813 Q1769511 Q6079630 Q896571 Q5940167 Q5610936 Q3071428
(c(Q502895),P119,Q1236689)
action filter_type
action find_reverse
entity Q1236689
relation P119
type Q502895
[ANSWERS] have that church as his/her tomb
[{'concept': 'Q502895'}, 'P119', 'Q1236689']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P119 resource:Q1236689 }
Andreas Peter Stobæus Peder Winstrup Eberhard Rosenblad Olof Celsius Lars Laurel Lars Johan Colling Fidanzio
Olof Celsius, Peder Winstrup and Eberhard Rosenblad have that church as his/her tomb
Olof Celsius Peder Winstrup Eberhard Rosenblad
action filter_type
action find_reverse
entity Lund Cathedral
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Lund Cathedral']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:place_of_burial resource:Lund_Cathedral }
[]