Simple Question (Direct)
Simple Question
Q5959575
P20
Q56061
USER
Which administrative territory is the place of death of Gabriel Linsén ?
(Q5959575,P20,c(Q56061))
action filter_type
action find
entity Q5959575
relation P20
type Q56061
['Q5959575', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q5959575 property:P20 ?o . ?o rdf:type ontology:Q56061 }
Gabriel Linsén
action filter_type
action find
entity Gabriel Linsén
relation place of death
type administrative territorial entity
['Gabriel Linsén', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Gabriel_Linsén property:place_of_death ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q193367
SYSTEM
Porvoo
Q193367
(Q5959575,P20,c(Q56061))
action filter_type
action find
entity Q5959575
relation P20
type Q56061
[ANSWER] is the place of death of Gabriel Linsén
['Q5959575', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q5959575 property:P20 ?o . ?o rdf:type ontology:Q56061 }
Porvoo
Porvoo is the place of death of Gabriel Linsén
Porvoo
action filter_type
action find
entity Gabriel Linsén
relation place of death
type administrative territorial entity
['Gabriel Linsén', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Gabriel_Linsén property:place_of_death ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q193367
P17
Q15617994
USER
Which administrative territory is that administrative territory present in ?
(Q193367,P17,c(Q15617994))
action filter_type
action find
entity Q193367
relation P17
type Q15617994
['Q193367', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q193367 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Porvoo
action filter_type
action find
entity Porvoo
relation country
type designation for an administrative territorial entity
['Porvoo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Porvoo property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33
SYSTEM
Finland
Q33
(Q193367,P17,c(Q15617994))
action filter_type
action find
entity Q193367
relation P17
type Q15617994
That administrative territory is of [ANSWER]
['Q193367', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q193367 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Finland
That administrative territory is of Finland
Finland
action filter_type
action find
entity Porvoo
relation country
type designation for an administrative territorial entity
['Porvoo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Porvoo property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q963
P17
Q15617994 Q3700011 Q2385804
USER
Which administrative territories do more number of districts of Indonesia or educational institutions belong to than Botswana ?
(c(Q3700011)|c(Q2385804),P17,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3700011
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2385804
action count
action filter_multi_types
action find_reverse
entity Q963
relation P17
type Q3700011
type Q2385804
[[{'concept': 'Q3700011'}, {'concept': 'Q2385804'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?x ) WHERE { VALUES ( ?e ) { ( ontology:Q3700011 ) ( ontology:Q2385804 ) } . ?h rdf:type ?e } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P17 resource:Q963 . { ?k rdf:type ?t . VALUES ( ?t ) { ( ontology:Q3700011 ) ( ontology:Q2385804 ) } } } } . FILTER ( ?x > ?b ) }
Botswana
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type district of Indonesia
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type educational institution
action count
action filter_multi_types
action find_reverse
entity Botswana
relation country
type district of Indonesia
type educational institution
[[{'concept': 'district of Indonesia'}, {'concept': 'educational institution'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?x ) WHERE { VALUES ( ?e ) { ( ontology:district_of_Indonesia ) ( ontology:educational_institution ) } . ?h rdf:type ?e } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:country resource:Botswana . { ?k rdf:type ?t . VALUES ( ?t ) { ( ontology:district_of_Indonesia ) ( ontology:educational_institution ) } } } } . FILTER ( ?x > ?b ) }
[]
designation for an administrative territorial entity district of Indonesia educational institution
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q398 Q668 Q142 Q55 Q145 Q262 Q148 Q265 Q214 Q837 Q252 Q399 Q258 Q45 Q159 Q43 Q41 Q155 Q794 Q889 Q884 Q822 Q244 Q33 Q921 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q854 Q424 Q233 Q20 Q27 Q28 Q189 Q843 Q1029 Q1028 Q836 Q32 Q222 Q96 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q298 Q114 Q117 Q754 Q212 Q213 Q211 Q215 Q218 Q37 Q833 Q29 Q79 Q878 Q810 Q869 Q953
(c(Q3700011)|c(Q2385804),P17,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3700011
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2385804
action count
action filter_multi_types
action find_reverse
entity Q963
relation P17
type Q3700011
type Q2385804
[ANSWERS] more number of districts of Innesia or educational institutions belong to than Botswana
[[{'concept': 'Q3700011'}, {'concept': 'Q2385804'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?x ) WHERE { VALUES ( ?e ) { ( ontology:Q3700011 ) ( ontology:Q2385804 ) } . ?h rdf:type ?e } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P17 resource:Q963 . { ?k rdf:type ?t . VALUES ( ?t ) { ( ontology:Q3700011 ) ( ontology:Q2385804 ) } } } } . FILTER ( ?x > ?b ) }
Israel Bahrain India France Netherlands United Kingdom Algeria People's Republic of China Uzbekistan Slovakia Nepal Indonesia Armenia South Africa Portugal Russia Turkey Greece Brazil Iran Afghanistan South Korea Lebanon Barbados Finland Brunei Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Sri Lanka Cambodia Malta Norway Ireland Hungary Iceland Pakistan Mozambique Morocco Myanmar Luxembourg Albania Mexico Japan Bangladesh Uganda Nigeria Namibia Estonia Chile Kenya Ghana Trinidad and Tobago Ukraine Czech Republic Latvia Slovenia Romania Lithuania Malaysia Spain Egypt United Arab Emirates Jordan Thailand Zambia
Italy, Brazil and United States of America more number of districts of Innesia or educational institutions belong to than Botswana
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type district of Indonesia
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type educational institution
action count
action filter_multi_types
action find_reverse
entity Botswana
relation country
type district of Indonesia
type educational institution
[[{'concept': 'district of Indonesia'}, {'concept': 'educational institution'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?x ) WHERE { VALUES ( ?e ) { ( ontology:district_of_Indonesia ) ( ontology:educational_institution ) } . ?h rdf:type ?e } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:country resource:Botswana . { ?k rdf:type ?t . VALUES ( ?t ) { ( ontology:district_of_Indonesia ) ( ontology:educational_institution ) } } } } . FILTER ( ?x > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q851
P17
Q15617994 Q3700011 Q2385804
USER
And what about Saudi Arabia?
(c(Q3700011)|c(Q2385804),P17,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3700011
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2385804
action count
action filter_multi_types
action find_reverse
entity Q851
relation P17
type Q3700011
type Q2385804
[[{'concept': 'Q3700011'}, {'concept': 'Q2385804'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?r WHERE { VALUES ( ?n ) { ( ontology:Q2385804 ) ( ontology:Q3700011 ) } . ?y rdf:type ?n } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { { ?h rdf:type ontology:Q2385804 } UNION { ?h rdf:type ontology:Q3700011 } } . ?h property:P17 resource:Q851 } } . FILTER ( ?e > ?v ) }
Saudi Arabia
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type district of Indonesia
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type educational institution
action count
action filter_multi_types
action find_reverse
entity Saudi Arabia
relation country
type district of Indonesia
type educational institution
[[{'concept': 'district of Indonesia'}, {'concept': 'educational institution'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?r WHERE { VALUES ( ?n ) { ( ontology:educational_institution ) ( ontology:district_of_Indonesia ) } . ?y rdf:type ?n } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { { ?h rdf:type ontology:educational_institution } UNION { ?h rdf:type ontology:district_of_Indonesia } } . ?h property:country resource:Saudi_Arabia } } . FILTER ( ?e > ?v ) }
[]
designation for an administrative territorial entity district of Indonesia educational institution
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q398 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q265 Q214 Q712 Q711 Q717 Q837 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q794 Q889 Q884 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q33 Q921 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q29999 Q854 Q734 Q424 Q236 Q233 Q20 Q1044 Q27 Q28 Q189 Q843 Q842 Q1029 Q1028 Q836 Q786 Q32 Q227 Q225 Q224 Q222 Q96 Q229 Q1050 Q17 Q902 Q1036 Q1032 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q117 Q754 Q212 Q213 Q211 Q215 Q218 Q37 Q917 Q833 Q29 Q874 Q79 Q77 Q878 Q810 Q1019 Q813 Q1011 Q869 Q953
(c(Q3700011)|c(Q2385804),P17,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3700011
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2385804
action count
action filter_multi_types
action find_reverse
entity Q851
relation P17
type Q3700011
type Q2385804
[ANSWERS]
[[{'concept': 'Q3700011'}, {'concept': 'Q2385804'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?r WHERE { VALUES ( ?n ) { ( ontology:Q2385804 ) ( ontology:Q3700011 ) } . ?y rdf:type ?n } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { { ?h rdf:type ontology:Q2385804 } UNION { ?h rdf:type ontology:Q3700011 } } . ?h property:P17 resource:Q851 } } . FILTER ( ?e > ?v ) }
Israel Bahrain India Argentina France Netherlands United Kingdom Algeria People's Republic of China Uzbekistan Slovakia Fiji Mongolia Venezuela Nepal Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iran Afghanistan South Korea Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Finland Brunei Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Kingdom of the Netherlands Sri Lanka Guyana Cambodia Montenegro Malta Norway Sierra Leone Ireland Hungary Iceland Pakistan Oman Mozambique Morocco Myanmar Dominican Republic Luxembourg Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Swaziland Japan Bangladesh Uganda Niger Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Ukraine Czech Republic Latvia Slovenia Romania Lithuania Bhutan Malaysia Spain Turkmenistan Egypt Uruguay United Arab Emirates Jordan Madagascar Kyrgyzstan Cape Verde Thailand Zambia
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type district of Indonesia
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type educational institution
action count
action filter_multi_types
action find_reverse
entity Saudi Arabia
relation country
type district of Indonesia
type educational institution
[[{'concept': 'district of Indonesia'}, {'concept': 'educational institution'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?r WHERE { VALUES ( ?n ) { ( ontology:educational_institution ) ( ontology:district_of_Indonesia ) } . ?y rdf:type ?n } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { { ?h rdf:type ontology:educational_institution } UNION { ?h rdf:type ontology:district_of_Indonesia } } . ?h property:country resource:Saudi_Arabia } } . FILTER ( ?e > ?v ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q486972 Q223557 Q15617994
USER
How many administrative territories come from approximately 2 human settlements or physical objects ?
(c(Q15617994),P138,c(Q486972)|c(Q223557))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action find_tuple_counts
relation P138
type Q15617994
type Q223557
value 2
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q223557'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { FILTER ( ?y = 2 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) ?o WHERE { VALUES ( ?q ) { ( ontology:Q486972 ) ( ontology:Q223557 ) } . ?t rdf:type ?q } GROUP BY ?o } }
action count
action approx
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type physical object
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'physical object'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { FILTER ( ?y = 2 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) ?o WHERE { VALUES ( ?q ) { ( ontology:human_settlement ) ( ontology:physical_object ) } . ?t rdf:type ?q } GROUP BY ?o } }
[]
human settlement physical object designation for an administrative territorial entity
SYSTEM
1
Q14697553
(c(Q15617994),P138,c(Q486972)|c(Q223557))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action find_tuple_counts
relation P138
type Q15617994
type Q223557
value 2
[ANSWER]
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q223557'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { FILTER ( ?y = 2 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) ?o WHERE { VALUES ( ?q ) { ( ontology:Q486972 ) ( ontology:Q223557 ) } . ?t rdf:type ?q } GROUP BY ?o } }
Neetzow-Liepen
1
action count
action approx
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type physical object
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'physical object'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { FILTER ( ?y = 2 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) ?o WHERE { VALUES ( ?q ) { ( ontology:human_settlement ) ( ontology:physical_object ) } . ?t rdf:type ?q } GROUP BY ?o } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?d ) { SELECT DISTINCT ?o ( COUNT ( ?g ) AS ?v ) WHERE { ?o property:P530 ?g . ?o rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?o } } . { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?a ) WHERE { ?q rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 . ?q property:P530 ?h } GROUP BY ?q } . FILTER ( ?a = ?d ) }
action argmax
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', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?d ) { SELECT DISTINCT ?o ( COUNT ( ?g ) AS ?v ) WHERE { ?o property:diplomatic_relation ?g . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } } . { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?a ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation ?h } GROUP BY ?q } . FILTER ( ?a = ?d ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] is known to have diplomatic connections with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?d ) { SELECT DISTINCT ?o ( COUNT ( ?g ) AS ?v ) WHERE { ?o property:P530 ?g . ?o rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?o } } . { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?a ) WHERE { ?q rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 . ?q property:P530 ?h } GROUP BY ?q } . FILTER ( ?a = ?d ) }
Georgia
Georgia is known to have diplomatic connections with max number of administrative territories
Georgia
action argmax
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', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?d ) { SELECT DISTINCT ?o ( COUNT ( ?g ) AS ?v ) WHERE { ?o property:diplomatic_relation ?g . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } } . { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?a ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation ?h } GROUP BY ?q } . FILTER ( ?a = ?d ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P159
Q874405 Q4830453
USER
How many social groups and business enterprises have the principal seat at United States of America ?
(c(Q874405),P159,Q30) (c(Q4830453),P159,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P159
type Q874405
action filter_type
action find_reverse
entity Q30
relation P159
type Q4830453
[{'concept': 'Q874405'}, 'P159', 'Q30'] [{'concept': 'Q4830453'}, 'P159', 'Q30']
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { ?f property:P159 resource:Q30 . ?f rdf:type ontology:Q874405 } UNION { ?f property:P159 resource:Q30 . ?f rdf:type ontology:Q4830453 } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation headquarters location
type social group
action filter_type
action find_reverse
entity United States of America
relation headquarters location
type business enterprise
[{'concept': 'social group'}, 'headquarters location', 'United States of America'] [{'concept': 'business enterprise'}, 'headquarters location', 'United States of America']
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { ?f property:headquarters_location resource:United_States_of_America . ?f rdf:type ontology:social_group } UNION { ?f property:headquarters_location resource:United_States_of_America . ?f rdf:type ontology:business_enterprise } }
[]
social group business enterprise
SYSTEM
113 social groups and 10 business enterprises
Q7552356 Q5176273 Q4744678 Q4697784 Q5433116 Q6973775 Q7753145 Q5970333 Q5533439 Q7895396 Q6970817 Q374451 Q6970611 Q6313230 Q4743010 Q3606110 Q8058385 Q5159907 Q4745046 Q4744638 Q5008872 Q6029207 Q7539716 Q18166546 Q6877854 Q2818966 Q4743703 Q7110552 Q7544139 Q5451308 Q7117005 Q5340902 Q4745105 Q7712775 Q6970681 Q4732592 Q7941041 Q4986517 Q5370623 Q5377082 Q5109902 Q6974913 Q6067209 Q5157443 Q4744695 Q1348664 Q4678266 Q4763528 Q16204774 Q5461390 Q5427159 Q5970423 Q5570547 Q7727875 Q869084 Q891885 Q4743084 Q4743599 Q5039393 Q6029213 Q4742892 Q4809651 Q7309793 Q4743206 Q5183617 Q4780086 Q5637165 Q170149 Q6970402 Q7738598 Q6715753 Q5461175 Q5167902 Q6972181 Q5602017 Q4744617 Q7735262 Q16209299 Q18210179 Q5637394 Q4745297 Q5020974 Q4806713 Q6052162 Q1966926 Q7895230 Q5637403 Q4742906 Q6770883 Q6535053 Q4740856 Q16826104 Q4744991 Q7750868 Q7865842 Q5307622 Q17082503 Q6048401 Q16238514 Q15040669 Q7312068 Q4744420 Q4966290 Q4923677 Q5461537 Q5156126 Q6878084 Q4744467 Q5265140 Q4744468 Q5152690 Q17092957 Q7457670 Q5691361 Q21177770 Q16954663 Q5277267 Q5527475 Q4743221 Q6487386 Q8031102 Q4807185 Q15995162
(c(Q874405),P159,Q30) (c(Q4830453),P159,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P159
type Q874405
action filter_type
action find_reverse
entity Q30
relation P159
type Q4830453
[ANSWER]
[{'concept': 'Q874405'}, 'P159', 'Q30'] [{'concept': 'Q4830453'}, 'P159', 'Q30']
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { ?f property:P159 resource:Q30 . ?f rdf:type ontology:Q874405 } UNION { ?f property:P159 resource:Q30 . ?f rdf:type ontology:Q4830453 } }
Society of American Gastrointestinal and Endoscopic Surgeons Council for Chemical Research American Physician Scientists Association Air Care Alliance Family Firm Institute National Insurance Association The National Association of Women in Construction IEEE Control Systems Society Genocide2600 University of Florida Board of Trustees National Athletic Trainers' Association Boeing Helicopters National Association of Black Accountants Junior Engineering Technical Society American Art Therapy Association Aerospace Medical Association Young Religious Unitarian Universalists Conference of Consulting Actuaries American Society of Anesthesia Technologists & Technicians American Osteopathic College of Occupational & Preventive Medicine CASPA Infectious Disease Pharmacokinetics Laboratory Sleep Research Society U.Sudan Peace & Development Foundation Miss University of Florida AABB American Eugenics Society Our America Initiative Smartlogic Semaphore Limited Fire P.H.I.R.M. Education Law Association American Society of Plastic Surgeons The AfriPop Project National Association of Heavy Equipment Training Schools Allied Radio Volunteer Pilots Association Building a Future Emergency Medicine Residents' Association Energy in Common Christian Medical and Dental Associations National Physicians Alliance Iranian American Bar Association Computer Hope American Police Force Rockwell International Ada Initiative Anglican Frontier Missions Resolve Uganda Florida Gators Dazzlers FSU Pow Wow IEEE Microwave Theory and Techniques Society Global Peace Exchange The Covenant, The Sword, and the Arm of the Lord Cord Automobile Broadcast Music American Association of Physician Specialists American Dental Hygienists' Association Caribbean Law Institute Infectious Diseases Society of America American Academy of Hospice and Palliative Medicine Association of Black Psychologists Rehearsal Club American Board of Medical Specialties Creators of Intense Art Apocalypse Production Crew HackThisSite Playhouse Disney National Arab American Medical Association The HSA Coalition MGM Worldwide Television Florida Academy of Physician Assistants Cooperative Living Organization National Defense Industrial Association Greek life at the University of Georgia American Osteopathic Association Bureau of Osteopathic Specialists The Fresh Air Fund Council for United Civil Rights Leadership Escrow.com Hacktivismo American Unitarian Conference California Society of Printmakers Asian Pacific American Medical Student Association International Network of Crackers National Association of School Psychologists University of Central Florida Board of Trustees Hackweiser American Academy of Physician Assistants Marketing Research Association Level Seven Amazon Video Center for Advanced Life Cycle Engineering American Siren The Medical Society of Virginia USA Taekwondo Inspiration Mars Foundation National Association of Real Estate Investment Trusts International Association of Black Actuaries Greek life at the University of Massachusetts Amherst Westinghouse Aviation Gas Turbine Division Remorse ASCII American Medical Women's Association Bridge Software Institute Blade Florida Opportunity Scholars Program Compassion & Choices Miss World United States American Moving & Storage Association Destination Marketing Association International American Moving Labor Professionals Association Commission on Accreditation for Law Enforcement Agencies Seattle Works Seventh-day Adventist Commentary Reference Series Healthiest State in the Nation Campaign Cyanogen Inc. The Initiative Collective Dimensional Innovations Gator Growl American Board of Psychiatry and Neurology Lansdowne Folk Club Women's WorldWide Web Askew Institute on Politics and Society IEEE Reliability Society
113 social groups and 10 business enterprises
action count
action union
action filter_type
action find_reverse
entity United States of America
relation headquarters location
type social group
action filter_type
action find_reverse
entity United States of America
relation headquarters location
type business enterprise
[{'concept': 'social group'}, 'headquarters location', 'United States of America'] [{'concept': 'business enterprise'}, 'headquarters location', 'United States of America']
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { ?f property:headquarters_location resource:United_States_of_America . ?f rdf:type ontology:social_group } UNION { ?f property:headquarters_location resource:United_States_of_America . ?f rdf:type ontology:business_enterprise } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q91302 Q193367
P190 P937
Q56061
USER
Which administrative territories are partner towns of Porvoo or are the work locations of Susanne Kastner ?
OR((Q193367,P190,c(Q56061)), (Q91302,P937,c(Q56061)))
action filter_type
action union
action find
entity Q193367
relation P190
action find
entity Q91302
relation P937
type Q56061
{'OR': [['Q193367', 'P190', {'concept': 'Q56061'}], ['Q91302', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q91302 property:P937 ?q } UNION { resource:Q193367 property:P190 ?q } } . ?q rdf:type ontology:Q56061 }
Susanne Kastner Porvoo
action filter_type
action union
action find
entity Porvoo
relation sister city
action find
entity Susanne Kastner
relation work location
type administrative territorial entity
{'OR': [['Porvoo', 'sister city', {'concept': 'administrative territorial entity'}], ['Susanne Kastner', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Susanne_Kastner property:work_location ?q } UNION { resource:Porvoo property:sister_city ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q161887 Q586 Q921052
SYSTEM
Kamień Pomorski, Bonn, Dalvík
Q161887 Q586 Q921052
OR((Q193367,P190,c(Q56061)), (Q91302,P937,c(Q56061)))
action filter_type
action union
action find
entity Q193367
relation P190
action find
entity Q91302
relation P937
type Q56061
[ANSWERS] are partner towns of Porvoo or are the work locations of Susanne Kastner
{'OR': [['Q193367', 'P190', {'concept': 'Q56061'}], ['Q91302', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q91302 property:P937 ?q } UNION { resource:Q193367 property:P190 ?q } } . ?q rdf:type ontology:Q56061 }
Kamień Pomorski Bonn Dalvík
Kamień Pomorski, Bonn and Dalvík are partner towns of Porvoo or are the work locations of Susanne Kastner
Kamień Pomorski Bonn Dalvík
action filter_type
action union
action find
entity Porvoo
relation sister city
action find
entity Susanne Kastner
relation work location
type administrative territorial entity
{'OR': [['Porvoo', 'sister city', {'concept': 'administrative territorial entity'}], ['Susanne Kastner', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Susanne_Kastner property:work_location ?q } UNION { resource:Porvoo property:sister_city ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q161887 Q586 Q921052
P190
Q56061
USER
Which administrative territories are sister towns of Kamień Pomorski, Bonn and Dalvík ?
(Q161887,P190,c(Q56061)) (Q586,P190,c(Q56061)) (Q921052,P190,c(Q56061))
action union
action filter_type
action find
entity Q161887
relation P190
type Q56061
action filter_type
action find
entity Q586
relation P190
type Q56061
action filter_type
action find
entity Q921052
relation P190
type Q56061
['Q161887', 'P190', {'concept': 'Q56061'}] ['Q586', 'P190', {'concept': 'Q56061'}] ['Q921052', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:Q56061 . resource:Q161887 property:P190 ?w } UNION { resource:Q586 property:P190 ?w . ?w rdf:type ontology:Q56061 } }
Kamień Pomorski Bonn Dalvík
action union
action filter_type
action find
entity Kamień Pomorski
relation sister city
type administrative territorial entity
action filter_type
action find
entity Bonn
relation sister city
type administrative territorial entity
action filter_type
action find
entity Dalvík
relation sister city
type administrative territorial entity
['Kamień Pomorski', 'sister city', {'concept': 'administrative territorial entity'}] ['Bonn', 'sister city', {'concept': 'administrative territorial entity'}] ['Dalvík', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:administrative_territorial_entity . resource:Kamień_Pomorski property:sister_city ?w } UNION { resource:Bonn property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q2280 Q33935 Q1491
SYSTEM
Minsk, Tel Aviv, La Paz
Q985656 Q193367 Q571970 Q33935 Q2280 Q525100 Q1491 Q5764 Q10686 Q321279 Q104400 Q193367 Q21176
(Q161887,P190,c(Q56061)) (Q586,P190,c(Q56061)) (Q921052,P190,c(Q56061))
action union
action filter_type
action find
entity Q161887
relation P190
type Q56061
action filter_type
action find
entity Q586
relation P190
type Q56061
action filter_type
action find
entity Q921052
relation P190
type Q56061
[ANSWERS] are sister towns of Kamień Pomorski, Bonn and Dalvík
['Q161887', 'P190', {'concept': 'Q56061'}] ['Q586', 'P190', {'concept': 'Q56061'}] ['Q921052', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:Q56061 . resource:Q161887 property:P190 ?w } UNION { resource:Q586 property:P190 ?w . ?w rdf:type ontology:Q56061 } }
Kowary Porvoo Torgelow Tel Aviv Minsk Budafok La Paz Bukhara Belfast Ittoqqortoormiit Hamar Porvoo Viborg
Minsk, Tel Aviv and La Paz are sister towns of Kamień Pomorski, Bonn and Dalvík
Minsk Tel Aviv La Paz
action union
action filter_type
action find
entity Kamień Pomorski
relation sister city
type administrative territorial entity
action filter_type
action find
entity Bonn
relation sister city
type administrative territorial entity
action filter_type
action find
entity Dalvík
relation sister city
type administrative territorial entity
['Kamień Pomorski', 'sister city', {'concept': 'administrative territorial entity'}] ['Bonn', 'sister city', {'concept': 'administrative territorial entity'}] ['Dalvík', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:administrative_territorial_entity . resource:Kamień_Pomorski property:sister_city ?w } UNION { resource:Bonn property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q33935
P840
Q838948
USER
Which works of art have their narrative set in that administrative territory ?
(c(Q838948),P840,Q33935)
action filter_type
action find_reverse
entity Q33935
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q33935']
SELECT DISTINCT ?k WHERE { ?k property:P840 resource:Q33935 . ?k rdf:type ontology:Q838948 }
Tel Aviv
action filter_type
action find_reverse
entity Tel Aviv
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Tel Aviv']
SELECT DISTINCT ?k WHERE { ?k property:narrative_location resource:Tel_Aviv . ?k rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q33935
SYSTEM
Did you mean Tel Aviv ?
Q2280 Q33935 Q1491
(c(Q838948),P840,Q2280) (c(Q838948),P840,Q33935) (c(Q838948),P840,Q1491)
[ANSWER]
[{'concept': 'Q838948'}, 'P840', 'Q2280'] [{'concept': 'Q838948'}, 'P840', 'Q33935'] [{'concept': 'Q838948'}, 'P840', 'Q1491']
SELECT DISTINCT ?k WHERE { ?k property:P840 resource:Q33935 . ?k rdf:type ontology:Q838948 }
Minsk Tel Aviv La Paz
Did you mean Tel Aviv ?
Tel Aviv
[{'concept': 'work of art'}, 'narrative location', 'Minsk'] [{'concept': 'work of art'}, 'narrative location', 'Tel Aviv'] [{'concept': 'work of art'}, 'narrative location', 'La Paz']
SELECT DISTINCT ?k WHERE { ?k property:narrative_location resource:Tel_Aviv . ?k rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P840,Q33935)
[{'concept': 'Q838948'}, 'P840', 'Q33935']
[{'concept': 'work of art'}, 'narrative location', 'Tel Aviv']
[]
Q1506263 Q2582809 Q1587932
SYSTEM
The Bubble, The Other Son, For My Father
Q18378805 Q2836922 Q2085771 Q2582809 Q1587932 Q820754 Q309459 Q19274268 Q1506263
(c(Q838948),P840,Q33935)
action filter_type
action find_reverse
entity Q33935
relation P840
type Q838948
[ANSWERS] have their narrative set in that administrative territory
[{'concept': 'Q838948'}, 'P840', 'Q33935']
SELECT DISTINCT ?k WHERE { ?k property:P840 resource:Q33935 . ?k rdf:type ontology:Q838948 }
Snails in the Rain Alila Fill the Void The Other Son For My Father Jaffa Paradise Now Antarctica The Bubble
The Bubble, The Other Son and For My Father have their narrative set in that administrative territory
The Bubble The Other Son For My Father
action filter_type
action find_reverse
entity Tel Aviv
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Tel Aviv']
SELECT DISTINCT ?k WHERE { ?k property:narrative_location resource:Tel_Aviv . ?k rdf:type ontology:work_of_art }
[]