Simple Question (Direct)
Simple Question
Q960500
P802
Q502895
USER
Which person was Dayi Daoxin a notable student of ?
(Q960500,P802,c(Q502895))
action filter_type
action find
entity Q960500
relation P802
type Q502895
['Q960500', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q960500 property:P802 ?p . ?p rdf:type ontology:Q502895 }
Dayi Daoxin
action filter_type
action find
entity Dayi Daoxin
relation student
type common name
['Dayi Daoxin', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Dayi_Daoxin property:student ?p . ?p rdf:type ontology:common_name }
[]
common name
Q1364567
SYSTEM
Daman Hongren
Q1364567
(Q960500,P802,c(Q502895))
action filter_type
action find
entity Q960500
relation P802
type Q502895
[ANSWER] was Dayi Daoxin a notable student of
['Q960500', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q960500 property:P802 ?p . ?p rdf:type ontology:Q502895 }
Daman Hongren
Daman Hongren was Dayi Daoxin a notable student of
Daman Hongren
action filter_type
action find
entity Dayi Daoxin
relation student
type common name
['Dayi Daoxin', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Dayi_Daoxin property:student ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q960500
P1066
Q502895
USER
Which person is a pupil of Dayi Daoxin ?
(c(Q502895),P1066,Q960500)
action filter_type
action find_reverse
entity Q960500
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q960500']
SELECT DISTINCT ?m WHERE { ?m property:P1066 resource:Q960500 . ?m rdf:type ontology:Q502895 }
Dayi Daoxin
action filter_type
action find_reverse
entity Dayi Daoxin
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Dayi Daoxin']
SELECT DISTINCT ?m WHERE { ?m property:student_of resource:Dayi_Daoxin . ?m rdf:type ontology:common_name }
[]
common name
Q1364567
SYSTEM
Daman Hongren
Q1364567
(c(Q502895),P1066,Q960500)
action filter_type
action find_reverse
entity Q960500
relation P1066
type Q502895
[ANSWER] is a pupil of Dayi Daoxin
[{'concept': 'Q502895'}, 'P1066', 'Q960500']
SELECT DISTINCT ?m WHERE { ?m property:P1066 resource:Q960500 . ?m rdf:type ontology:Q502895 }
Daman Hongren
Daman Hongren is a pupil of Dayi Daoxin
Daman Hongren
action filter_type
action find_reverse
entity Dayi Daoxin
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Dayi Daoxin']
SELECT DISTINCT ?m WHERE { ?m property:student_of resource:Dayi_Daoxin . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1364567
P140
Q874405
USER
What is the religious affiliation of that person ?
(Q1364567,P140,c(Q874405))
action filter_type
action find
entity Q1364567
relation P140
type Q874405
['Q1364567', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?y WHERE { resource:Q1364567 property:P140 ?y . ?y rdf:type ontology:Q874405 }
Daman Hongren
action filter_type
action find
entity Daman Hongren
relation religion
type social group
['Daman Hongren', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?y WHERE { resource:Daman_Hongren property:religion ?y . ?y rdf:type ontology:social_group }
[]
social group
Q748
SYSTEM
Buddhism
Q748
(Q1364567,P140,c(Q874405))
action filter_type
action find
entity Q1364567
relation P140
type Q874405
The religious affiliation of that person is a [ANSWER]
['Q1364567', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?y WHERE { resource:Q1364567 property:P140 ?y . ?y rdf:type ontology:Q874405 }
Buddhism
The religious affiliation of that person is a Buddhism
Buddhism
action filter_type
action find
entity Daman Hongren
relation religion
type social group
['Daman Hongren', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?y WHERE { resource:Daman_Hongren property:religion ?y . ?y rdf:type ontology:social_group }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P137
Q874405 Q83620
USER
Which thoroughfares can be described as service operator of max number of social groups ?
(c(Q83620),P137,c(Q874405))
action argmax
action find_tuple_counts
relation P137
type Q83620
type Q874405
[{'concept': 'Q83620'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?t ) { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?b ) WHERE { ?r rdf:type ontology:Q83620 . ?a rdf:type ontology:Q874405 . ?r property:P137 ?a } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?p ) WHERE { ?y property:P137 ?e . ?e rdf:type ontology:Q874405 . ?y rdf:type ontology:Q83620 } GROUP BY ?y } . FILTER ( ?p = ?t ) }
action argmax
action find_tuple_counts
relation operator
type thoroughfare
type social group
[{'concept': 'thoroughfare'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?t ) { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?b ) WHERE { ?r rdf:type ontology:thoroughfare . ?a rdf:type ontology:social_group . ?r property:operator ?a } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?p ) WHERE { ?y property:operator ?e . ?e rdf:type ontology:social_group . ?y rdf:type ontology:thoroughfare } GROUP BY ?y } . FILTER ( ?p = ?t ) }
[]
social group thoroughfare
Q6708162
SYSTEM
Lyme Regis branch line
Q6708162
(c(Q83620),P137,c(Q874405))
action argmax
action find_tuple_counts
relation P137
type Q83620
type Q874405
[ANSWER] can be described as service operator of max number of social groups
[{'concept': 'Q83620'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?t ) { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?b ) WHERE { ?r rdf:type ontology:Q83620 . ?a rdf:type ontology:Q874405 . ?r property:P137 ?a } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?p ) WHERE { ?y property:P137 ?e . ?e rdf:type ontology:Q874405 . ?y rdf:type ontology:Q83620 } GROUP BY ?y } . FILTER ( ?p = ?t ) }
Lyme Regis branch line
Lyme Regis branch line can be described as service operator of max number of social groups
Lyme Regis branch line
action argmax
action find_tuple_counts
relation operator
type thoroughfare
type social group
[{'concept': 'thoroughfare'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?t ) { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?b ) WHERE { ?r rdf:type ontology:thoroughfare . ?a rdf:type ontology:social_group . ?r property:operator ?a } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?p ) WHERE { ?y property:operator ?e . ?e rdf:type ontology:social_group . ?y rdf:type ontology:thoroughfare } GROUP BY ?y } . FILTER ( ?p = ?t ) }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q6708162 Q4663959 Q741266
P137
Q740752
USER
Is Lyme Regis branch line the administrator of Abbeville–Grimes Railway Company and Southern Railway ?
(Q6708162,P137,Q4663959) (Q6708162,P137,Q741266)
action is_in
entity Q6708162
action intersection
action find_reverse
entity Q4663959
relation P137
action find_reverse
entity Q741266
relation P137
['Q6708162', 'P137', 'Q4663959'] ['Q6708162', 'P137', 'Q741266']
ASK WHERE { resource:Q6708162 property:P137 resource:Q4663959 . resource:Q6708162 property:P137 resource:Q741266 }
Lyme Regis branch line Abbeville–Grimes Railway Company Southern Railway
action is_in
entity Lyme Regis branch line
action intersection
action find_reverse
entity Abbeville–Grimes Railway Company
relation operator
action find_reverse
entity Southern Railway
relation operator
['Lyme Regis branch line', 'operator', 'Abbeville–Grimes Railway Company'] ['Lyme Regis branch line', 'operator', 'Southern Railway']
ASK WHERE { resource:Lyme_Regis_branch_line property:operator resource:Abbeville–Grimes_Railway_Company . resource:Lyme_Regis_branch_line property:operator resource:Southern_Railway }
[]
transport company
SYSTEM
NO and YES respectively
(Q6708162,P137,Q4663959) (Q6708162,P137,Q741266)
action is_in
entity Q6708162
action intersection
action find_reverse
entity Q4663959
relation P137
action find_reverse
entity Q741266
relation P137
[ANSWER]
['Q6708162', 'P137', 'Q4663959'] ['Q6708162', 'P137', 'Q741266']
ASK WHERE { resource:Q6708162 property:P137 resource:Q4663959 . resource:Q6708162 property:P137 resource:Q741266 }
NO and YES respectively
action is_in
entity Lyme Regis branch line
action intersection
action find_reverse
entity Abbeville–Grimes Railway Company
relation operator
action find_reverse
entity Southern Railway
relation operator
['Lyme Regis branch line', 'operator', 'Abbeville–Grimes Railway Company'] ['Lyme Regis branch line', 'operator', 'Southern Railway']
ASK WHERE { resource:Lyme_Regis_branch_line property:operator resource:Abbeville–Grimes_Railway_Company . resource:Lyme_Regis_branch_line property:operator resource:Southern_Railway }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q748 Q9441 Q6323233
P112
Q502895
USER
Was Buddhism started by Gautama Buddha and K. C. Ramrakha ?
(Q748,P112,Q9441) (Q748,P112,Q6323233)
action is_in
entity Q748
action intersection
action find_reverse
entity Q9441
relation P112
action find_reverse
entity Q6323233
relation P112
['Q748', 'P112', 'Q9441'] ['Q748', 'P112', 'Q6323233']
ASK WHERE { resource:Q748 property:P112 resource:Q9441 . resource:Q748 property:P112 resource:Q6323233 }
Buddhism Gautama Buddha K. C. Ramrakha
action is_in
entity Buddhism
action intersection
action find_reverse
entity Gautama Buddha
relation founder
action find_reverse
entity K. C. Ramrakha
relation founder
['Buddhism', 'founder', 'Gautama Buddha'] ['Buddhism', 'founder', 'K. C. Ramrakha']
ASK WHERE { resource:Buddhism property:founder resource:Gautama_Buddha . resource:Buddhism property:founder resource:K._C._Ramrakha }
[]
common name
SYSTEM
YES and NO respectively
(Q748,P112,Q9441) (Q748,P112,Q6323233)
action is_in
entity Q748
action intersection
action find_reverse
entity Q9441
relation P112
action find_reverse
entity Q6323233
relation P112
[ANSWER]
['Q748', 'P112', 'Q9441'] ['Q748', 'P112', 'Q6323233']
ASK WHERE { resource:Q748 property:P112 resource:Q9441 . resource:Q748 property:P112 resource:Q6323233 }
YES and NO respectively
action is_in
entity Buddhism
action intersection
action find_reverse
entity Gautama Buddha
relation founder
action find_reverse
entity K. C. Ramrakha
relation founder
['Buddhism', 'founder', 'Gautama Buddha'] ['Buddhism', 'founder', 'K. C. Ramrakha']
ASK WHERE { resource:Buddhism property:founder resource:Gautama_Buddha . resource:Buddhism property:founder resource:K._C._Ramrakha }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P559
Q83620 Q83620
USER
Which thoroughfares are the endpoints for max number of thoroughfares ?
(c(Q83620),P559,Q2448209)
action argmax
action find_tuple_counts
relation P559
type Q83620
type Q83620
[{'concept': 'Q83620'}, 'P559', 'Q2448209']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?h ) WHERE { ?j property:P559 ?m . ?m rdf:type ontology:Q83620 . ?j rdf:type ontology:Q83620 } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?s ) WHERE { ?d property:P559 ?n . ?d rdf:type ontology:Q83620 . ?n rdf:type ontology:Q83620 } GROUP BY ?d } . FILTER ( ?s = ?g ) }
action argmax
action find_tuple_counts
relation terminus
type thoroughfare
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Interstate 90 in Minnesota']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?h ) WHERE { ?j property:terminus ?m . ?m rdf:type ontology:thoroughfare . ?j rdf:type ontology:thoroughfare } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?s ) WHERE { ?d property:terminus ?n . ?d rdf:type ontology:thoroughfare . ?n rdf:type ontology:thoroughfare } GROUP BY ?d } . FILTER ( ?s = ?g ) }
[]
thoroughfare thoroughfare
Q798131
SYSTEM
U.S. Route 13 in Delaware
Q798131
(c(Q83620),P559,Q2448209)
action argmax
action find_tuple_counts
relation P559
type Q83620
type Q83620
[ANSWER] is the endpoints for max number of thoroughfares
[{'concept': 'Q83620'}, 'P559', 'Q2448209']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?h ) WHERE { ?j property:P559 ?m . ?m rdf:type ontology:Q83620 . ?j rdf:type ontology:Q83620 } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?s ) WHERE { ?d property:P559 ?n . ?d rdf:type ontology:Q83620 . ?n rdf:type ontology:Q83620 } GROUP BY ?d } . FILTER ( ?s = ?g ) }
U.S. Route 13 in Delaware
U.S. Route 13 in Delaware is the endpoints for max number of thoroughfares
U.S. Route 13 in Delaware
action argmax
action find_tuple_counts
relation terminus
type thoroughfare
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Interstate 90 in Minnesota']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?h ) WHERE { ?j property:terminus ?m . ?m rdf:type ontology:thoroughfare . ?j rdf:type ontology:thoroughfare } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?s ) WHERE { ?d property:terminus ?n . ?d rdf:type ontology:thoroughfare . ?n rdf:type ontology:thoroughfare } GROUP BY ?d } . FILTER ( ?s = ?g ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P559
Q56061 Q83620
USER
Which administrative territories are the terminus for min number of thoroughfares ?
(c(Q83620),P559,Q1085)
action argmin
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
[{'concept': 'Q83620'}, 'P559', 'Q1085']
SELECT DISTINCT ?e WHERE { FILTER ( ?a = ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P559 ?e . ?e rdf:type ontology:Q56061 . ?r rdf:type ontology:Q83620 } GROUP BY ?e } . { SELECT DISTINCT ( MIN ( ?d ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?d ) WHERE { ?b rdf:type ontology:Q56061 . ?n rdf:type ontology:Q83620 . ?n property:P559 ?b } GROUP BY ?b } } }
action argmin
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Prague']
SELECT DISTINCT ?e WHERE { FILTER ( ?a = ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:terminus ?e . ?e rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:thoroughfare } GROUP BY ?e } . { SELECT DISTINCT ( MIN ( ?d ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?d ) WHERE { ?b rdf:type ontology:administrative_territorial_entity . ?n rdf:type ontology:thoroughfare . ?n property:terminus ?b } GROUP BY ?b } } }
[]
administrative territorial entity thoroughfare
Q65 Q727 Q33959
SYSTEM
Los Angeles, Amsterdam, Nice
Q3051477 Q1020217 Q3112707 Q837211 Q3812238 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 Q5032535 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(Q83620),P559,Q1085)
action argmin
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
[ANSWERS] are the terminus for min number of thoroughfares
[{'concept': 'Q83620'}, 'P559', 'Q1085']
SELECT DISTINCT ?e WHERE { FILTER ( ?a = ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P559 ?e . ?e rdf:type ontology:Q56061 . ?r rdf:type ontology:Q83620 } GROUP BY ?e } . { SELECT DISTINCT ( MIN ( ?d ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?d ) WHERE { ?b rdf:type ontology:Q56061 . ?n rdf:type ontology:Q83620 . ?n property:P559 ?b } GROUP BY ?b } } }
Ellewoutsdijk Minehead Sedbury Scheveningen Bronygarth 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 Cann River 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 the terminus for min number of thoroughfares
Los Angeles Amsterdam Nice
action argmin
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Prague']
SELECT DISTINCT ?e WHERE { FILTER ( ?a = ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:terminus ?e . ?e rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:thoroughfare } GROUP BY ?e } . { SELECT DISTINCT ( MIN ( ?d ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?d ) WHERE { ?b rdf:type ontology:administrative_territorial_entity . ?n rdf:type ontology:thoroughfare . ?n property:terminus ?b } GROUP BY ?b } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q798131 Q3431357
P559
Q34442
USER
How many roads have U.S. Route 13 in Delaware or Di'anmen as terminus ?
(c(Q34442),P559,Q798131) (c(Q34442),P559,Q3431357)
action count
action union
action filter_type
action find_reverse
entity Q798131
relation P559
type Q34442
action filter_type
action find_reverse
entity Q3431357
relation P559
type Q34442
[{'concept': 'Q34442'}, 'P559', 'Q798131'] [{'concept': 'Q34442'}, 'P559', 'Q3431357']
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?u ) { ( resource:Q798131 ) ( resource:Q3431357 ) } . ?q property:P559 ?u }
U.S. Route 13 in Delaware Di'anmen
action count
action union
action filter_type
action find_reverse
entity U.S. Route 13 in Delaware
relation terminus
type road
action filter_type
action find_reverse
entity Di'anmen
relation terminus
type road
[{'concept': 'road'}, 'terminus', 'U.S. Route 13 in Delaware'] [{'concept': 'road'}, 'terminus', "Di'anmen"]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?u ) { ( resource:U.S._Route_13_in_Delaware ) ( resource:Di'anmen ) } . ?q property:terminus ?u }
[]
road
SYSTEM
2
Q10928273 Q10928272
(c(Q34442),P559,Q798131) (c(Q34442),P559,Q3431357)
action count
action union
action filter_type
action find_reverse
entity Q798131
relation P559
type Q34442
action filter_type
action find_reverse
entity Q3431357
relation P559
type Q34442
[ANSWER]
[{'concept': 'Q34442'}, 'P559', 'Q798131'] [{'concept': 'Q34442'}, 'P559', 'Q3431357']
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?u ) { ( resource:Q798131 ) ( resource:Q3431357 ) } . ?q property:P559 ?u }
Dianmen Outer Street Dianmen Inner Street
2
action count
action union
action filter_type
action find_reverse
entity U.S. Route 13 in Delaware
relation terminus
type road
action filter_type
action find_reverse
entity Di'anmen
relation terminus
type road
[{'concept': 'road'}, 'terminus', 'U.S. Route 13 in Delaware'] [{'concept': 'road'}, 'terminus', "Di'anmen"]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?u ) { ( resource:U.S._Route_13_in_Delaware ) ( resource:Di'anmen ) } . ?q property:terminus ?u }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7110776 Q3431357
P17
Q15617994
USER
Which administrative territories are Di'anmen or Our Lady of Czestochowa Parish, Coventry located in ?
OR((Q3431357,P17,c(Q15617994)), (Q7110776,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3431357
relation P17
action find
entity Q7110776
relation P17
type Q15617994
{'OR': [['Q3431357', 'P17', {'concept': 'Q15617994'}], ['Q7110776', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { ?r property:P17 ?z . VALUES ( ?r ) { ( resource:Q3431357 ) ( resource:Q7110776 ) } } . ?z rdf:type ontology:Q15617994 }
Our Lady of Czestochowa Parish, Coventry Di'anmen
action filter_type
action union
action find
entity Di'anmen
relation country
action find
entity Our Lady of Czestochowa Parish, Coventry
relation country
type designation for an administrative territorial entity
{'OR': [["Di'anmen", 'country', {'concept': 'designation for an administrative territorial entity'}], ['Our Lady of Czestochowa Parish, Coventry', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { ?r property:country ?z . VALUES ( ?r ) { ( resource:Di'anmen ) ( resource:Our_Lady_of_Czestochowa_Parish,_Coventry ) } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148 Q30
SYSTEM
People's Republic of China, United States of America
Q148 Q30
OR((Q3431357,P17,c(Q15617994)), (Q7110776,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3431357
relation P17
action find
entity Q7110776
relation P17
type Q15617994
Di'anmen or Our Lady of Czestochowa Parish , Coventry are located in [ANSWERS]
{'OR': [['Q3431357', 'P17', {'concept': 'Q15617994'}], ['Q7110776', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { ?r property:P17 ?z . VALUES ( ?r ) { ( resource:Q3431357 ) ( resource:Q7110776 ) } } . ?z rdf:type ontology:Q15617994 }
People's Republic of China United States of America
Di'anmen or Our Lady of Czestochowa Parish , Coventry are located in People's Republic of China and United States of America
People's Republic of China United States of America
action filter_type
action union
action find
entity Di'anmen
relation country
action find
entity Our Lady of Czestochowa Parish, Coventry
relation country
type designation for an administrative territorial entity
{'OR': [["Di'anmen", 'country', {'concept': 'designation for an administrative territorial entity'}], ['Our Lady of Czestochowa Parish, Coventry', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { ?r property:country ?z . VALUES ( ?r ) { ( resource:Di'anmen ) ( resource:Our_Lady_of_Czestochowa_Parish,_Coventry ) } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories did less number of releases originate than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|Count over More/Less|Single entity type|Clarification
Q148
SYSTEM
Did you mean People's Republic of China ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean People's Republic of China ?
People's Republic of China
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
152
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 Q36 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania Poland Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
152
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?u ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?b ) WHERE { ?q property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?q } } . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?j ) WHERE { ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 . ?x property:P530 ?a } GROUP BY ?x } . FILTER ( ?j = ?u ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?u ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?b ) WHERE { ?q property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?j ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?a } GROUP BY ?x } . FILTER ( ?j = ?u ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] hold diplomatic relationship with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?u ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?b ) WHERE { ?q property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?q } } . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?j ) WHERE { ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 . ?x property:P530 ?a } GROUP BY ?x } . FILTER ( ?j = ?u ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan hold diplomatic relationship with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?u ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?b ) WHERE { ?q property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?j ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?a } GROUP BY ?x } . FILTER ( ?j = ?u ) }
[]