Simple Question (Direct)
Simple Question
Q40087
P19
Q56061
USER
Which administrative territory was Justin Chambers born at ?
(Q40087,P19,c(Q56061))
action filter_type
action find
entity Q40087
relation P19
type Q56061
['Q40087', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q40087 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Justin Chambers
action filter_type
action find
entity Justin Chambers
relation place of birth
type administrative territorial entity
['Justin Chambers', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Justin_Chambers property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q40325
SYSTEM
Springfield
Q40325
(Q40087,P19,c(Q56061))
action filter_type
action find
entity Q40087
relation P19
type Q56061
[ANSWER]
['Q40087', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q40087 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Springfield
Springfield
action filter_type
action find
entity Justin Chambers
relation place of birth
type administrative territorial entity
['Justin Chambers', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Justin_Chambers property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40325
P1408
Q4830453
USER
Which business enterprises have procured license for broadcasting to that administrative territory ?
(c(Q4830453),P1408,Q40325)
action filter_type
action find_reverse
entity Q40325
relation P1408
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', 'Q40325']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q4830453 . ?l property:P1408 resource:Q40325 }
Springfield
action filter_type
action find_reverse
entity Springfield
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Springfield']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:business_enterprise . ?l property:licensed_to_broadcast_to resource:Springfield }
[]
business enterprise
Q14716845 Q7951032
SYSTEM
WEEC, WIZE
Q14716845 Q7951032
(c(Q4830453),P1408,Q40325)
action filter_type
action find_reverse
entity Q40325
relation P1408
type Q4830453
[ANSWERS]
[{'concept': 'Q4830453'}, 'P1408', 'Q40325']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q4830453 . ?l property:P1408 resource:Q40325 }
WEEC WIZE
WEEC WIZE
action filter_type
action find_reverse
entity Springfield
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Springfield']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:business_enterprise . ?l property:licensed_to_broadcast_to resource:Springfield }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40325
P159
Q874405
USER
Which social group has headquarters located at Springfield ?
(c(Q874405),P159,Q40325)
action filter_type
action find_reverse
entity Q40325
relation P159
type Q874405
[{'concept': 'Q874405'}, 'P159', 'Q40325']
SELECT DISTINCT ?d WHERE { ?d property:P159 resource:Q40325 . ?d rdf:type ontology:Q874405 }
Springfield
action filter_type
action find_reverse
entity Springfield
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Springfield']
SELECT DISTINCT ?d WHERE { ?d property:headquarters_location resource:Springfield . ?d rdf:type ontology:social_group }
[]
social group
Q8028570
SYSTEM
Wittenberg University Speleological Society
Q8028570
(c(Q874405),P159,Q40325)
action filter_type
action find_reverse
entity Q40325
relation P159
type Q874405
[ANSWER]
[{'concept': 'Q874405'}, 'P159', 'Q40325']
SELECT DISTINCT ?d WHERE { ?d property:P159 resource:Q40325 . ?d rdf:type ontology:Q874405 }
Wittenberg University Speleological Society
Wittenberg University Speleological Society
action filter_type
action find_reverse
entity Springfield
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Springfield']
SELECT DISTINCT ?d WHERE { ?d property:headquarters_location resource:Springfield . ?d rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40325
P559
Q473972
USER
Which protected area has Springfield as its endpoint ?
(c(Q473972),P559,Q40325)
action filter_type
action find_reverse
entity Q40325
relation P559
type Q473972
[{'concept': 'Q473972'}, 'P559', 'Q40325']
SELECT DISTINCT ?i WHERE { ?i property:P559 resource:Q40325 . ?i rdf:type ontology:Q473972 }
Springfield
action filter_type
action find_reverse
entity Springfield
relation terminus
type protected area
[{'concept': 'protected area'}, 'terminus', 'Springfield']
SELECT DISTINCT ?i WHERE { ?i property:terminus resource:Springfield . ?i rdf:type ontology:protected_area }
[]
protected area
Q6650935
SYSTEM
Little Miami Scenic Trail
Q6650935
(c(Q473972),P559,Q40325)
action filter_type
action find_reverse
entity Q40325
relation P559
type Q473972
[ANSWER]
[{'concept': 'Q473972'}, 'P559', 'Q40325']
SELECT DISTINCT ?i WHERE { ?i property:P559 resource:Q40325 . ?i rdf:type ontology:Q473972 }
Little Miami Scenic Trail
Little Miami Scenic Trail
action filter_type
action find_reverse
entity Springfield
relation terminus
type protected area
[{'concept': 'protected area'}, 'terminus', 'Springfield']
SELECT DISTINCT ?i WHERE { ?i property:terminus resource:Springfield . ?i rdf:type ontology:protected_area }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40325
P47
Q56061
USER
Which administrative territory has a shared border with that one ?
(Q6650935,P47,c(Q56061))
action filter_type
action find
entity Q40325
relation P47
type Q56061
['Q6650935', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q40325 property:P47 ?x }
Springfield
action filter_type
action find
entity Springfield
relation shares border with
type administrative territorial entity
['Little Miami Scenic Trail', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Springfield property:shares_border_with ?x }
[]
administrative territorial entity
Q1762816
SYSTEM
Urbana
Q1762816
(Q6650935,P47,c(Q56061))
action filter_type
action find
entity Q40325
relation P47
type Q56061
[ANSWER]
['Q6650935', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q40325 property:P47 ?x }
Urbana
Urbana
action filter_type
action find
entity Springfield
relation shares border with
type administrative territorial entity
['Little Miami Scenic Trail', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Springfield property:shares_border_with ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1762816
P17
Q15617994
USER
Which administrative territory is that administrative territory a part of ?
(Q1762816,P17,c(Q15617994))
action filter_type
action find
entity Q1762816
relation P17
type Q15617994
['Q1762816', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q1762816 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Urbana
action filter_type
action find
entity Urbana
relation country
type designation for an administrative territorial entity
['Urbana', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Urbana property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1762816,P17,c(Q15617994))
action filter_type
action find
entity Q1762816
relation P17
type Q15617994
[ANSWER]
['Q1762816', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q1762816 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Urbana
relation country
type designation for an administrative territorial entity
['Urbana', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Urbana property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P17
Q376799 Q796194
USER
How many transport infrastructures and medical procedures are located in United States of America ?
(c(Q376799),P17,Q30) (c(Q796194),P17,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P17
type Q376799
action filter_type
action find_reverse
entity Q30
relation P17
type Q796194
[{'concept': 'Q376799'}, 'P17', 'Q30'] [{'concept': 'Q796194'}, 'P17', 'Q30']
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ?t . VALUES ( ?t ) { ( ontology:Q376799 ) ( ontology:Q796194 ) } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation country
type transport infrastructure
action filter_type
action find_reverse
entity United States of America
relation country
type medical procedure
[{'concept': 'transport infrastructure'}, 'country', 'United States of America'] [{'concept': 'medical procedure'}, 'country', 'United States of America']
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ?t . VALUES ( ?t ) { ( ontology:transport_infrastructure ) ( ontology:medical_procedure ) } }
[]
transport infrastructure medical procedure
SYSTEM
191 transport infrastructures and 1 medical procedures
Q5491873 Q2487863 Q3327598 Q5141936 Q16975199 Q245364 Q2711129 Q109951 Q5920981 Q2873601 Q5529504 Q2946688 Q6382238 Q2933160 Q7366413 Q790552 Q790554 Q3471805 Q5468076 Q124973 Q7006514 Q4875693 Q5481730 Q7225470 Q7606937 Q5508461 Q3441902 Q2488398 Q7354955 Q7354952 Q2487871 Q14707231 Q2066512 Q3322721 Q6770747 Q4797872 Q8024657 Q3347841 Q3555634 Q1481324 Q1640031 Q4640404 Q6669363 Q986343 Q3276131 Q2860036 Q7354944 Q4444755 Q4950765 Q2589766 Q5159412 Q1386890 Q750142 Q6412928 Q5594326 Q719152 Q5122201 Q1515312 Q5457870 Q1116311 Q7163659 Q6858016 Q5243961 Q4746975 Q173672 Q2873530 Q5327622 Q4878766 Q2738041 Q769100 Q2597808 Q2893574 Q1589838 Q6749229 Q4532801 Q6488403 Q5685363 Q5448866 Q3660813 Q124947 Q1318800 Q2870884 Q4811095 Q5178275 Q6182571 Q5082718 Q3400830 Q2891409 Q5618318 Q785788 Q14707315 Q1027626 Q1666510 Q4631697 Q1105822 Q3216465 Q4681281 Q6948581 Q7338892 Q191013 Q2487820 Q6736078 Q1593583 Q1179054 Q6127266 Q2900385 Q3567198 Q1264489 Q7075932 Q1086990 Q16974026 Q3305282 Q7995221 Q5093995 Q2613951 Q3410723 Q5440446 Q130388 Q14707461 Q5125301 Q7061983 Q7580937 Q7617324 Q5491864 Q7902774 Q655136 Q5604832 Q7963662 Q16985161 Q6736067 Q4971948 Q3554425 Q7978887 Q2818314 Q5327614 Q3572606 Q110061 Q7591272 Q658443 Q109926 Q7445265 Q2724557 Q130424 Q7238776 Q5283685 Q4550089 Q4549405 Q6994646 Q12065318 Q7498057 Q7170177 Q14707593 Q3453364 Q5134218 Q7637452 Q4972376 Q14706945 Q124914 Q8026342 Q3401253 Q124857 Q3990464 Q3155249 Q248284 Q6146376 Q896007 Q5159589 Q948562 Q109739 Q3143368 Q5594456 Q6552286 Q5187990 Q1934308 Q14706811 Q5462907 Q5243930 Q3306319 Q130378 Q6878757 Q4958111 Q5476000 Q7886372 Q130405 Q5414390 Q6820088 Q5457936 Q5474681 Q5160821 Q5328371 Q1455230 Q2817506
(c(Q376799),P17,Q30) (c(Q796194),P17,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P17
type Q376799
action filter_type
action find_reverse
entity Q30
relation P17
type Q796194
[ANSWER]
[{'concept': 'Q376799'}, 'P17', 'Q30'] [{'concept': 'Q796194'}, 'P17', 'Q30']
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ?t . VALUES ( ?t ) { ( ontology:Q376799 ) ( ontology:Q796194 ) } }
Franklin Street Shore Front Parkway Mulholland Highway Colbert's Ferry Good Neighbor Trail 59th Street (Manhattan) 57th Street Eighth Avenue Howard Street Avenue D Geary Boulevard Cermak Road Kearny Street Cahuenga Boulevard Roosevelt Avenue Avenue A Avenue C Sand Hill Road Fordham Road Franklin D. Roosevelt East River Drive New Chardon Street Beach Channel Drive Francis Lewis Boulevard Polk Street Steinway Street Fulton Street Roosevelt Road Mosholu Parkway Rockaway Parkway Rockaway Freeway Woodhaven Boulevard Rockaway Boulevard Wilshire Boulevard Montgomery Street Market Street Arthur Avenue Windsor Mill Road Oak Street Ventura Boulevard Wilderness Road Hyde Street 53rd Street Lombard Street State Street Madison Street Archer Avenue Rockaway Beach Boulevard LaSalle Street Bowdoin Street Riverside Drive Conduit Boulevard Park Row Astor Row Kings Highway Grand Boulevard California Street Grant Avenue Ocean Drive Flatbush Avenue Commonwealth Avenue, Boston Pennsylvania Avenue Milk Street DeKoven Street Amity Street 125th Street Avenue B East 233rd Street Becks Run Road Central Park West 52nd Street Nassau Street Bedford Avenue Union Street Manhattan Avenue Essex Street Lapskaus Boulevard Hawley Street Fillmore Street Queens Boulevard First Avenue Worth Street Audubon Avenue Astoria Boulevard Court Street Jerome Avenue Charles Street Powell Street Atlantic Avenue Gun Hill Road Bowery Southern Boulevard (Bronx) Embarcadero International Drive 23rd Street St. Charles Avenue Lake Street Addison Street Myrtle Avenue Rivington Street 14th Street Pelham Parkway Main Street Saint Nicholas Avenue Day Boulevard Jamaica Avenue Beverly Boulevard Wells Street Grand Street Ocean Avenue Christopher Street Alameda Street Melrose Avenue White Plains Road Chestnut Street Broad Street Pulaski Road Federal Street Tenth Avenue Third Avenue (Brooklyn) Claire Saltonstall Bikeway Nostrand Avenue Springfield Boulevard Stillwell Avenue Franklin Street Utica Avenue 110th Street Greenwich Avenue Walnut Street Sunset Park Greenway Main Street, Queens Broad Street Van Ness Avenue Webster Avenue 79th Street East 161st Street York Avenue 42nd Street St. Paul Street-Calvert Street Houston Street Seventh Avenue Sedgwick Avenue Bleecker Street West Side Highway Pratt Street Ditmars Boulevard 14th Street 13th Avenue Infinite Loop Park Street, Boston Shippen Street Pershing Road Utopia Parkway (Queens) Rush Street Clinton Road Summer Street Broadway Metropolitan Avenue Second Avenue Winter Street Prairie Avenue Third Avenue Third Street Promenade Isham Street Market Street Royal Street, New Orleans Boylston Street Coney Island Avenue Tommy John surgery Lexington Avenue Huntington Avenue Grand Concourse Linden Boulevard Cropsey Avenue Mulberry Street Little Neck Parkway Flushing Avenue DeKalb Avenue Mercer Street Ninth Avenue Mission Street Brattle Street Fourth Avenue Union Turnpike Eleventh Avenue Eutaw Street Merrick Road Flatlands Avenue Fountain Avenue Congress Street East Fork Road Fremont Street 55th Street
191 transport infrastructures and 1 medical procedures
action count
action union
action filter_type
action find_reverse
entity United States of America
relation country
type transport infrastructure
action filter_type
action find_reverse
entity United States of America
relation country
type medical procedure
[{'concept': 'transport infrastructure'}, 'country', 'United States of America'] [{'concept': 'medical procedure'}, 'country', 'United States of America']
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ?t . VALUES ( ?t ) { ( ontology:transport_infrastructure ) ( ontology:medical_procedure ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18967488 Q40325
P276 P190
Q56061
USER
Which administrative territories are partner towns of Springfield or can Bredastraat be found ?
OR((Q40325,P190,c(Q56061)), (Q18967488,P276,c(Q56061)))
action filter_type
action union
action find
entity Q40325
relation P190
action find
entity Q18967488
relation P276
type Q56061
{'OR': [['Q40325', 'P190', {'concept': 'Q56061'}], ['Q18967488', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q40325 property:P190 ?u } UNION { resource:Q18967488 property:P276 ?u } } . ?u rdf:type ontology:Q56061 }
Bredastraat Springfield
action filter_type
action union
action find
entity Springfield
relation sister city
action find
entity Bredastraat
relation location
type administrative territorial entity
{'OR': [['Springfield', 'sister city', {'concept': 'administrative territorial entity'}], ['Bredastraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Springfield property:sister_city ?u } UNION { resource:Bredastraat property:location ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q6837 Q167394 Q2766547
SYSTEM
Lutherstadt Wittenberg, Kragujevac, 's-Hertogenbosch
Q6837 Q167394 Q2766547
OR((Q40325,P190,c(Q56061)), (Q18967488,P276,c(Q56061)))
action filter_type
action union
action find
entity Q40325
relation P190
action find
entity Q18967488
relation P276
type Q56061
[ANSWERS]
{'OR': [['Q40325', 'P190', {'concept': 'Q56061'}], ['Q18967488', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q40325 property:P190 ?u } UNION { resource:Q18967488 property:P276 ?u } } . ?u rdf:type ontology:Q56061 }
Lutherstadt Wittenberg Kragujevac 's-Hertogenbosch
Lutherstadt Wittenberg Kragujevac 's-Hertogenbosch
action filter_type
action union
action find
entity Springfield
relation sister city
action find
entity Bredastraat
relation location
type administrative territorial entity
{'OR': [['Springfield', 'sister city', {'concept': 'administrative territorial entity'}], ['Bredastraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Springfield property:sister_city ?u } UNION { resource:Bredastraat property:location ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q515 Q56061
USER
How many cities or administrative territories are sister town of that administrative territory ?
(c(Q515),P190,Q6837) (c(Q56061),P190,Q6837) (c(Q515),P190,Q6837) (c(Q56061),P190,Q6837) (c(Q515),P190,Q167394) (c(Q56061),P190,Q167394) (c(Q515),P190,Q2766547) (c(Q56061),P190,Q2766547)
[{'concept': 'Q515'}, 'P190', 'Q6837'] [{'concept': 'Q56061'}, 'P190', 'Q6837'] [{'concept': 'Q515'}, 'P190', 'Q6837'] [{'concept': 'Q56061'}, 'P190', 'Q6837'] [{'concept': 'Q515'}, 'P190', 'Q167394'] [{'concept': 'Q56061'}, 'P190', 'Q167394'] [{'concept': 'Q515'}, 'P190', 'Q2766547'] [{'concept': 'Q56061'}, 'P190', 'Q2766547']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q6837 } UNION { ?y property:P190 resource:Q6837 } UNION { ?z property:P190 resource:Q6837 } UNION { ?y property:P190 resource:Q6837 } UNION { ?z property:P190 resource:Q167394 } UNION { ?y property:P190 resource:Q167394 } UNION { ?z property:P190 resource:Q9807 } UNION { ?y property:P190 resource:Q9807 } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
[{'concept': 'city'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'city'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'city'}, 'sister city', 'Kragujevac'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Kragujevac'] [{'concept': 'city'}, 'sister city', "'s-Hertogenbosch"] [{'concept': 'administrative territorial entity'}, 'sister city', "'s-Hertogenbosch"]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?y property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?z property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?y property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?z property:sister_city resource:Kragujevac } UNION { ?y property:sister_city resource:Kragujevac } UNION { ?z property:sister_city resource:'s-Hertogenbosch } UNION { ?y property:sister_city resource:'s-Hertogenbosch } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
city administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q6837
SYSTEM
Did you mean Lutherstadt Wittenberg ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q6837 } UNION { ?y property:P190 resource:Q6837 } UNION { ?z property:P190 resource:Q6837 } UNION { ?y property:P190 resource:Q6837 } UNION { ?z property:P190 resource:Q167394 } UNION { ?y property:P190 resource:Q167394 } UNION { ?z property:P190 resource:Q9807 } UNION { ?y property:P190 resource:Q9807 } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
Did you mean Lutherstadt Wittenberg ?
Lutherstadt Wittenberg
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?y property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?z property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?y property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?z property:sister_city resource:Kragujevac } UNION { ?y property:sister_city resource:Kragujevac } UNION { ?z property:sister_city resource:'s-Hertogenbosch } UNION { ?y property:sister_city resource:'s-Hertogenbosch } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q515),P190,Q6837) (c(Q56061),P190,Q6837) (c(Q515),P190,Q6837) (c(Q56061),P190,Q6837) (c(Q515),P190,Q167394) (c(Q56061),P190,Q167394) (c(Q515),P190,Q2766547) (c(Q56061),P190,Q2766547)
[{'concept': 'Q515'}, 'P190', 'Q6837'] [{'concept': 'Q56061'}, 'P190', 'Q6837'] [{'concept': 'Q515'}, 'P190', 'Q6837'] [{'concept': 'Q56061'}, 'P190', 'Q6837'] [{'concept': 'Q515'}, 'P190', 'Q167394'] [{'concept': 'Q56061'}, 'P190', 'Q167394'] [{'concept': 'Q515'}, 'P190', 'Q2766547'] [{'concept': 'Q56061'}, 'P190', 'Q2766547']
[{'concept': 'city'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'city'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'city'}, 'sister city', 'Kragujevac'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Kragujevac'] [{'concept': 'city'}, 'sister city', "'s-Hertogenbosch"] [{'concept': 'administrative territorial entity'}, 'sister city', "'s-Hertogenbosch"]
[]
SYSTEM
5
Q40325 Q495428 Q178878 Q29868 Q3033
(c(Q515),P190,Q6837) (c(Q56061),P190,Q6837) (c(Q515),P190,Q6837) (c(Q56061),P190,Q6837) (c(Q515),P190,Q167394) (c(Q56061),P190,Q167394) (c(Q515),P190,Q2766547) (c(Q56061),P190,Q2766547)
[ANSWER]
[{'concept': 'Q515'}, 'P190', 'Q6837'] [{'concept': 'Q56061'}, 'P190', 'Q6837'] [{'concept': 'Q515'}, 'P190', 'Q6837'] [{'concept': 'Q56061'}, 'P190', 'Q6837'] [{'concept': 'Q515'}, 'P190', 'Q167394'] [{'concept': 'Q56061'}, 'P190', 'Q167394'] [{'concept': 'Q515'}, 'P190', 'Q2766547'] [{'concept': 'Q56061'}, 'P190', 'Q2766547']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q6837 } UNION { ?y property:P190 resource:Q6837 } UNION { ?z property:P190 resource:Q6837 } UNION { ?y property:P190 resource:Q6837 } UNION { ?z property:P190 resource:Q167394 } UNION { ?y property:P190 resource:Q167394 } UNION { ?z property:P190 resource:Q9807 } UNION { ?y property:P190 resource:Q9807 } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
Springfield Bretten Békéscsaba Haderslev Göttingen
5
[{'concept': 'city'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'city'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Lutherstadt Wittenberg'] [{'concept': 'city'}, 'sister city', 'Kragujevac'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Kragujevac'] [{'concept': 'city'}, 'sister city', "'s-Hertogenbosch"] [{'concept': 'administrative territorial entity'}, 'sister city', "'s-Hertogenbosch"]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?y property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?z property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?y property:sister_city resource:Lutherstadt_Wittenberg } UNION { ?z property:sister_city resource:Kragujevac } UNION { ?y property:sister_city resource:Kragujevac } UNION { ?z property:sister_city resource:'s-Hertogenbosch } UNION { ?y property:sister_city resource:'s-Hertogenbosch } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q16911891 Q40325
P17
Q15617994
USER
Which administrative territories are Springfield and W. F. & Estelle McWilliams House present in ?
AND((Q40325,P17,c(Q15617994)), (Q16911891,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q40325
relation P17
action find
entity Q16911891
relation P17
type Q15617994
{'AND': [['Q40325', 'P17', {'concept': 'Q15617994'}], ['Q16911891', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q40325 property:P17 ?b . resource:Q16911891 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
W. F. & Estelle McWilliams House Springfield
action filter_type
action intersection
action find
entity Springfield
relation country
action find
entity W. F. & Estelle McWilliams House
relation country
type designation for an administrative territorial entity
{'AND': [['Springfield', 'country', {'concept': 'designation for an administrative territorial entity'}], ['W. F. & Estelle McWilliams House', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Springfield property:country ?b . resource:W._F._&_Estelle_McWilliams_House property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q40325,P17,c(Q15617994)), (Q16911891,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q40325
relation P17
action find
entity Q16911891
relation P17
type Q15617994
[ANSWER]
{'AND': [['Q40325', 'P17', {'concept': 'Q15617994'}], ['Q16911891', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q40325 property:P17 ?b . resource:Q16911891 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action intersection
action find
entity Springfield
relation country
action find
entity W. F. & Estelle McWilliams House
relation country
type designation for an administrative territorial entity
{'AND': [['Springfield', 'country', {'concept': 'designation for an administrative territorial entity'}], ['W. F. & Estelle McWilliams House', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Springfield property:country ?b . resource:W._F._&_Estelle_McWilliams_House property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]