Simple Question (Direct)
Simple Question
Q666316
P641
Q349
USER
Which sport did Martin Vunk participate in ?
(Q666316,P641,c(Q349))
action filter_type
action find
entity Q666316
relation P641
type Q349
['Q666316', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q666316 property:P641 ?q . ?q rdf:type ontology:Q349 }
Martin Vunk
action filter_type
action find
entity Martin Vunk
relation sport
type sport
['Martin Vunk', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Martin_Vunk property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q666316,P641,c(Q349))
action filter_type
action find
entity Q666316
relation P641
type Q349
Martin Vunk participated in [ANSWER]
['Q666316', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q666316 property:P641 ?q . ?q rdf:type ontology:Q349 }
association football
Martin Vunk participated in association football
association football
action filter_type
action find
entity Martin Vunk
relation sport
type sport
['Martin Vunk', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Martin_Vunk property:sport ?q . ?q rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q666316
P54
Q1194951
USER
What is that person a member of ?
(Q2736,P54,c(Q1194951))
action filter_type
action find
entity Q666316
relation P54
type Q1194951
['Q2736', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?a WHERE { resource:Q666316 property:P54 ?a . ?a rdf:type ontology:Q1194951 }
Martin Vunk
action filter_type
action find
entity Martin Vunk
relation member of sports team
type national sports team
['association football', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?a WHERE { resource:Martin_Vunk property:member_of_sports_team ?a . ?a rdf:type ontology:national_sports_team }
[]
national sports team
Q186914
SYSTEM
Estonia national football team
Q186914
(Q2736,P54,c(Q1194951))
action filter_type
action find
entity Q666316
relation P54
type Q1194951
That person a member of is the [ANSWER]
['Q2736', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?a WHERE { resource:Q666316 property:P54 ?a . ?a rdf:type ontology:Q1194951 }
Estonia national football team
That person a member of is the Estonia national football team
Estonia national football team
action filter_type
action find
entity Martin Vunk
relation member of sports team
type national sports team
['association football', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?a WHERE { resource:Martin_Vunk property:member_of_sports_team ?a . ?a rdf:type ontology:national_sports_team }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6382842 Q666316
P27 P495
Q15617994
USER
Which administrative territories are the native countriesof Martin Vunk or did Keemat – They Are Back originate ?
OR((Q666316,P27,c(Q15617994)), (Q6382842,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q666316
relation P27
action find
entity Q6382842
relation P495
type Q15617994
{'OR': [['Q666316', 'P27', {'concept': 'Q15617994'}], ['Q6382842', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q666316 property:P27 ?o } UNION { resource:Q6382842 property:P495 ?o } } . ?o rdf:type ontology:Q15617994 }
Keemat – They Are Back Martin Vunk
action filter_type
action union
action find
entity Martin Vunk
relation country of citizenship
action find
entity Keemat – They Are Back
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Martin Vunk', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Keemat – They Are Back', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Martin_Vunk property:country_of_citizenship ?o } UNION { resource:Keemat_–_They_Are_Back property:country_of_origin ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q191 Q668
SYSTEM
Estonia, India
Q191 Q668
OR((Q666316,P27,c(Q15617994)), (Q6382842,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q666316
relation P27
action find
entity Q6382842
relation P495
type Q15617994
[ANSWERS] are the native countriesof Martin Vunk or did Keemat – They are Back originate
{'OR': [['Q666316', 'P27', {'concept': 'Q15617994'}], ['Q6382842', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q666316 property:P27 ?o } UNION { resource:Q6382842 property:P495 ?o } } . ?o rdf:type ontology:Q15617994 }
Estonia India
Estonia and India are the native countriesof Martin Vunk or did Keemat – They are Back originate
Estonia India
action filter_type
action union
action find
entity Martin Vunk
relation country of citizenship
action find
entity Keemat – They Are Back
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Martin Vunk', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Keemat – They Are Back', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Martin_Vunk property:country_of_citizenship ?o } UNION { resource:Keemat_–_They_Are_Back property:country_of_origin ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q265
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with more number of administrative territories than Uzbekistan ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q265
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?s > ?v ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { resource:Q265 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?s ) WHERE { ?d property:P530 ?u . ?d rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?d } }
Uzbekistan
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Uzbekistan
relation diplomatic relation
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 ?d WHERE { FILTER ( ?s > ?v ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { resource:Uzbekistan property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?s ) WHERE { ?d property:diplomatic_relation ?u . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q184 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q265
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with more number of administrative territories than Uzbekistan
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?s > ?v ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { resource:Q265 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?s ) WHERE { ?d property:P530 ?u . ?d rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?d } }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Belarus Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America are known to have diplomatic connections with more number of administrative territories than Uzbekistan
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Uzbekistan
relation diplomatic relation
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 ?d WHERE { FILTER ( ?s > ?v ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { resource:Uzbekistan property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?s ) WHERE { ?d property:diplomatic_relation ?u . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q794
P530
Q15617994 Q15617994
USER
And what about Iran?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q794
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?v ) WHERE { ?k property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Q794 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?v > ?t ) }
Iran
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Iran
relation diplomatic relation
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 ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?v ) WHERE { ?k property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Iran property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v > ?t ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q142 Q145 Q148 Q711 Q403 Q159 Q43 Q155 Q884 Q30 Q929 Q38 Q230 Q184 Q225 Q347 Q17 Q114 Q212 Q858 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q794
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?v ) WHERE { ?k property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Q794 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?v > ?t ) }
Israel Yemen India France United Kingdom People's Republic of China Mongolia Serbia Russia Turkey Brazil South Korea United States of America Central African Republic Italy Georgia Belarus Bosnia and Herzegovina Liechtenstein Japan Kenya Ukraine Syria Cape Verde Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Iran
relation diplomatic relation
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 ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?v ) WHERE { ?k property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Iran property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v > ?t ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q155 Q30
P36
Q56061
USER
Which administrative territories are called the capital of Italy, Brazil and United States of America ?
(Q38,P36,c(Q56061)) (Q155,P36,c(Q56061)) (Q30,P36,c(Q56061))
action union
action filter_type
action find
entity Q38
relation P36
type Q56061
action filter_type
action find
entity Q155
relation P36
type Q56061
action filter_type
action find
entity Q30
relation P36
type Q56061
['Q38', 'P36', {'concept': 'Q56061'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?q property:P36 ?a . VALUES ( ?q ) { ( resource:Q38 ) ( resource:Q155 ) } }
Italy Brazil United States of America
action union
action filter_type
action find
entity Italy
relation capital
type administrative territorial entity
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
action filter_type
action find
entity United States of America
relation capital
type administrative territorial entity
['Italy', 'capital', {'concept': 'administrative territorial entity'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?q property:capital ?a . VALUES ( ?q ) { ( resource:Italy ) ( resource:Brazil ) } }
[]
administrative territorial entity
Q8678 Q220 Q60
SYSTEM
Rio de Janeiro, Rome, New York City
Q220 Q8678 Q60 Q61
(Q38,P36,c(Q56061)) (Q155,P36,c(Q56061)) (Q30,P36,c(Q56061))
action union
action filter_type
action find
entity Q38
relation P36
type Q56061
action filter_type
action find
entity Q155
relation P36
type Q56061
action filter_type
action find
entity Q30
relation P36
type Q56061
[ANSWERS] are called the capital of Italy, Brazil and United States of America
['Q38', 'P36', {'concept': 'Q56061'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?q property:P36 ?a . VALUES ( ?q ) { ( resource:Q38 ) ( resource:Q155 ) } }
Rome Rio de Janeiro New York City Washington, D.C.
Rio de Janeiro, Rome and New York City are called the capital of Italy, Brazil and United States of America
Rio de Janeiro Rome New York City
action union
action filter_type
action find
entity Italy
relation capital
type administrative territorial entity
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
action filter_type
action find
entity United States of America
relation capital
type administrative territorial entity
['Italy', 'capital', {'concept': 'administrative territorial entity'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?q property:capital ?a . VALUES ( ?q ) { ( resource:Italy ) ( resource:Brazil ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q8678 Q220 Q60
P190
Q56061
USER
Which administrative territories are partner towns of those ones ?
(Q8678,P190,c(Q56061)) (Q220,P190,c(Q56061)) (Q60,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q8678', 'P190', {'concept': 'Q56061'}] ['Q220', 'P190', {'concept': 'Q56061'}] ['Q60', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . VALUES ( ?q ) { ( resource:Q220 ) ( resource:Q8678 ) ( resource:Q60 ) } . ?q property:P190 ?b }
Rio de Janeiro Rome New York City
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Rio de Janeiro', 'sister city', {'concept': 'administrative territorial entity'}] ['Rome', 'sister city', {'concept': 'administrative territorial entity'}] ['New York City', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . VALUES ( ?q ) { ( resource:Rome ) ( resource:Rio_de_Janeiro ) ( resource:New_York_City ) } . ?q property:sister_city ?b }
[]
administrative territorial entity
Q2807 Q2807 Q1781
SYSTEM
Madrid for 1st, 2nd, Budapest for 3rd
Q178725 Q158119 Q727 Q3889 Q25395 Q3274 Q365 Q33935 Q191135 Q40236 Q192807 Q24826 Q2807 Q14328 Q181557 Q735025 Q9248 Q51103 Q1524 Q1489 Q48320 Q1218 Q71 Q33959 Q1070 Q612 Q34863 Q26155 Q12191 Q5582862 Q406 Q8673 Q24639 Q1563 Q6441 Q270 Q34820 Q5468 Q597 Q956 Q170903 Q23556 Q1019424 Q1491 Q1492 Q3820 Q5112 Q484799 Q8717 Q90 Q34647 Q1490 Q132830 Q3630 Q3561 Q33935 Q34820 Q51103 Q34647 Q2807 Q956 Q1781 Q84 Q85 Q1490 Q1218 Q585
(Q8678,P190,c(Q56061)) (Q220,P190,c(Q56061)) (Q60,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS]
['Q8678', 'P190', {'concept': 'Q56061'}] ['Q220', 'P190', {'concept': 'Q56061'}] ['Q60', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . VALUES ( ?q ) { ( resource:Q220 ) ( resource:Q8678 ) ( resource:Q60 ) } . ?q property:P190 ?b }
Niterói Ramallah Amsterdam Maputo Newark Managua Cologne Tel Aviv Vila Nova de Gaia Manaus Ramat Gan Liverpool Madrid Santa Cruz de Tenerife Kaohsiung City Cabo Frio Baku Cali Athens Mexico City Kōbe Jerusalem Geneva Nice Ahmedabad Dubai Oklahoma City Jounieh Nantes Cusco Istanbul Lagos Vancouver Havana Montpellier Warsaw Santo Domingo Durban Lisbon Beijing Guimarães Atlanta Rufisque La Paz Barcelona Beirut Adelaide Marbella Seville Paris Johannesburg Tokyo Douala Jakarta Algiers Tel Aviv Santo Domingo Cali Johannesburg Madrid Beijing Budapest London Cairo Tokyo Jerusalem Oslo
Madrid, Madrid and Budapest are partner towns of those ones
Madrid Madrid Budapest
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Rio de Janeiro', 'sister city', {'concept': 'administrative territorial entity'}] ['Rome', 'sister city', {'concept': 'administrative territorial entity'}] ['New York City', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . VALUES ( ?q ) { ( resource:Rome ) ( resource:Rio_de_Janeiro ) ( resource:New_York_City ) } . ?q property:sister_city ?b }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2807
P1376
Q13220204
USER
Which administrative country subdivision has that administrative territory has its center of administration ?
(Q2807,P1376,c(Q13220204))
action filter_type
action find
entity Q2807
relation P1376
type Q13220204
['Q2807', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?h WHERE { resource:Q2807 property:P1376 ?h . ?h rdf:type ontology:Q13220204 }
Madrid
action filter_type
action find
entity Madrid
relation capital of
type second-level administrative country subdivision
['Madrid', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?h WHERE { resource:Madrid property:capital_of ?h . ?h rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Clarification for simple ques.
Q1781
SYSTEM
Did you mean Budapest ?
Q2807 Q2807 Q1781
(Q2807,P1376,c(Q13220204)) (Q2807,P1376,c(Q13220204)) (Q1781,P1376,c(Q13220204))
[ANSWER]
['Q2807', 'P1376', {'concept': 'Q13220204'}] ['Q2807', 'P1376', {'concept': 'Q13220204'}] ['Q1781', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?h WHERE { resource:Q2807 property:P1376 ?h . ?h rdf:type ontology:Q13220204 }
Madrid Madrid Budapest
Did you mean Budapest ?
Budapest
['Madrid', 'capital of', {'concept': 'second-level administrative country subdivision'}] ['Madrid', 'capital of', {'concept': 'second-level administrative country subdivision'}] ['Budapest', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?h WHERE { resource:Madrid property:capital_of ?h . ?h rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
USER
No, I meant Madrid. Could you tell me the answer for that?
(Q2807,P1376,c(Q13220204))
Q2807
['Q2807', 'P1376', {'concept': 'Q13220204'}]
['Madrid', 'capital of', {'concept': 'second-level administrative country subdivision'}]
[]
Q24069437
SYSTEM
Madrid Province
Q24069437
(Q2807,P1376,c(Q13220204))
action filter_type
action find
entity Q2807
relation P1376
type Q13220204
The [ANSWER] has that administrative territory has its center of administration
['Q2807', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?h WHERE { resource:Q2807 property:P1376 ?h . ?h rdf:type ontology:Q13220204 }
Madrid Province
The Madrid Province has that administrative territory has its center of administration
Madrid Province
action filter_type
action find
entity Madrid
relation capital of
type second-level administrative country subdivision
['Madrid', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?h WHERE { resource:Madrid property:capital_of ?h . ?h rdf:type ontology:second-level_administrative_country_subdivision }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q24069437 Q11049 Q29
P17
Q15617994
USER
Is that administrative country subdivision located in Marienheide and Spain ?
(Q24069437,P17,Q11049) (Q24069437,P17,Q29)
action is_in
entity Q24069437
action intersection
action find_reverse
entity Q11049
relation P17
action find_reverse
entity Q29
relation P17
['Q24069437', 'P17', 'Q11049'] ['Q24069437', 'P17', 'Q29']
ASK WHERE { resource:Q24069437 property:P17 resource:Q11049 . resource:Q24069437 property:P17 resource:Q29 }
Madrid Province Marienheide Spain
action is_in
entity Madrid Province
action intersection
action find_reverse
entity Marienheide
relation country
action find_reverse
entity Spain
relation country
['Madrid Province', 'country', 'Marienheide'] ['Madrid Province', 'country', 'Spain']
ASK WHERE { resource:Madrid_Province property:country resource:Marienheide . resource:Madrid_Province property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q24069437,P17,Q11049) (Q24069437,P17,Q29)
action is_in
entity Q24069437
action intersection
action find_reverse
entity Q11049
relation P17
action find_reverse
entity Q29
relation P17
[ANSWER]
['Q24069437', 'P17', 'Q11049'] ['Q24069437', 'P17', 'Q29']
ASK WHERE { resource:Q24069437 property:P17 resource:Q11049 . resource:Q24069437 property:P17 resource:Q29 }
NO and YES respectively
action is_in
entity Madrid Province
action intersection
action find_reverse
entity Marienheide
relation country
action find_reverse
entity Spain
relation country
['Madrid Province', 'country', 'Marienheide'] ['Madrid Province', 'country', 'Spain']
ASK WHERE { resource:Madrid_Province property:country resource:Marienheide . resource:Madrid_Province property:country resource:Spain }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q8678 Q923254 Q1416480
P190
Q515
USER
Is Rio de Janeiro twin city of Fundulea and Proseč ?
(Q8678,P190,Q923254) (Q8678,P190,Q1416480)
action is_in
entity Q8678
action intersection
action find_reverse
entity Q923254
relation P190
action find_reverse
entity Q1416480
relation P190
['Q8678', 'P190', 'Q923254'] ['Q8678', 'P190', 'Q1416480']
ASK WHERE { resource:Q8678 property:P190 resource:Q1416480 . resource:Q8678 property:P190 resource:Q923254 }
Rio de Janeiro Fundulea Proseč
action is_in
entity Rio de Janeiro
action intersection
action find_reverse
entity Fundulea
relation sister city
action find_reverse
entity Proseč
relation sister city
['Rio de Janeiro', 'sister city', 'Fundulea'] ['Rio de Janeiro', 'sister city', 'Proseč']
ASK WHERE { resource:Rio_de_Janeiro property:sister_city resource:Proseč . resource:Rio_de_Janeiro property:sister_city resource:Fundulea }
[]
city
SYSTEM
NO
(Q8678,P190,Q923254) (Q8678,P190,Q1416480)
action is_in
entity Q8678
action intersection
action find_reverse
entity Q923254
relation P190
action find_reverse
entity Q1416480
relation P190
[ANSWER]
['Q8678', 'P190', 'Q923254'] ['Q8678', 'P190', 'Q1416480']
ASK WHERE { resource:Q8678 property:P190 resource:Q1416480 . resource:Q8678 property:P190 resource:Q923254 }
No
action is_in
entity Rio de Janeiro
action intersection
action find_reverse
entity Fundulea
relation sister city
action find_reverse
entity Proseč
relation sister city
['Rio de Janeiro', 'sister city', 'Fundulea'] ['Rio de Janeiro', 'sister city', 'Proseč']
ASK WHERE { resource:Rio_de_Janeiro property:sister_city resource:Proseč . resource:Rio_de_Janeiro property:sister_city resource:Fundulea }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10274246 Q666316
P27 P495
Q15617994
USER
Which administrative territories do Martin Vunk belong to or are the countries of origin of Escalada ?
OR((Q666316,P27,c(Q15617994)), (Q10274246,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q666316
relation P27
action find
entity Q10274246
relation P495
type Q15617994
{'OR': [['Q666316', 'P27', {'concept': 'Q15617994'}], ['Q10274246', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q666316 property:P27 ?e } UNION { resource:Q10274246 property:P495 ?e } } . ?e rdf:type ontology:Q15617994 }
Escalada Martin Vunk
action filter_type
action union
action find
entity Martin Vunk
relation country of citizenship
action find
entity Escalada
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Martin Vunk', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Escalada', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Martin_Vunk property:country_of_citizenship ?e } UNION { resource:Escalada property:country_of_origin ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q191 Q155
SYSTEM
Estonia, Brazil
Q191 Q155
OR((Q666316,P27,c(Q15617994)), (Q10274246,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q666316
relation P27
action find
entity Q10274246
relation P495
type Q15617994
Martin Vunk belong to or are the countries of origin of Escalada in [ANSWERS]
{'OR': [['Q666316', 'P27', {'concept': 'Q15617994'}], ['Q10274246', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q666316 property:P27 ?e } UNION { resource:Q10274246 property:P495 ?e } } . ?e rdf:type ontology:Q15617994 }
Estonia Brazil
Martin Vunk belong to or are the countries of origin of Escalada in Estonia and Brazil
Estonia Brazil
action filter_type
action union
action find
entity Martin Vunk
relation country of citizenship
action find
entity Escalada
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Martin Vunk', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Escalada', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Martin_Vunk property:country_of_citizenship ?e } UNION { resource:Escalada property:country_of_origin ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10274246
P136
Q5962346
USER
Which classification scheme is the genre for that television program ?
(Q191,P136,c(Q5962346)) (Q155,P136,c(Q5962346))
action filter_type
action find
entity Q10274246
relation P136
type Q5962346
['Q191', 'P136', {'concept': 'Q5962346'}] ['Q155', 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ?h WHERE { resource:Q10274246 property:P136 ?h . ?h rdf:type ontology:Q5962346 }
Escalada
action filter_type
action find
entity Escalada
relation genre
type classification scheme
['Estonia', 'genre', {'concept': 'classification scheme'}] ['Brazil', 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ?h WHERE { resource:Escalada property:genre ?h . ?h rdf:type ontology:classification_scheme }
[]
classification scheme
Q23745
SYSTEM
telenovela
Q23745
(Q191,P136,c(Q5962346)) (Q155,P136,c(Q5962346))
action filter_type
action find
entity Q10274246
relation P136
type Q5962346
[ANSWER] is the genre for that television program
['Q191', 'P136', {'concept': 'Q5962346'}] ['Q155', 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ?h WHERE { resource:Q10274246 property:P136 ?h . ?h rdf:type ontology:Q5962346 }
telenovela
Telenovela is the genre for that television program
telenovela
action filter_type
action find
entity Escalada
relation genre
type classification scheme
['Estonia', 'genre', {'concept': 'classification scheme'}] ['Brazil', 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ?h WHERE { resource:Escalada property:genre ?h . ?h rdf:type ontology:classification_scheme }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10274246
P449
Q1616075
USER
Which network did that television program originally air in ?
(Q23745,P449,c(Q1616075))
action filter_type
action find
entity Q10274246
relation P449
type Q1616075
['Q23745', 'P449', {'concept': 'Q1616075'}]
SELECT DISTINCT ?t WHERE { resource:Q10274246 property:P449 ?t . ?t rdf:type ontology:Q1616075 }
Escalada
action filter_type
action find
entity Escalada
relation original network
type television station
['telenovela', 'original network', {'concept': 'television station'}]
SELECT DISTINCT ?t WHERE { resource:Escalada property:original_network ?t . ?t rdf:type ontology:television_station }
[]
television station
Q3587
SYSTEM
Rede Globo
Q3587
(Q23745,P449,c(Q1616075))
action filter_type
action find
entity Q10274246
relation P449
type Q1616075
Originally that television program aired on [ANSWER]
['Q23745', 'P449', {'concept': 'Q1616075'}]
SELECT DISTINCT ?t WHERE { resource:Q10274246 property:P449 ?t . ?t rdf:type ontology:Q1616075 }
Rede Globo
Originally that television program aired on Rede Globo
Rede Globo
action filter_type
action find
entity Escalada
relation original network
type television station
['telenovela', 'original network', {'concept': 'television station'}]
SELECT DISTINCT ?t WHERE { resource:Escalada property:original_network ?t . ?t rdf:type ontology:television_station }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P449
Q1616075 Q15961987 Q15416
USER
How many television stations were less number of television genres and television programs originally aired than that television station ?
(c(Q15961987)|c(Q15416),P449,c(Q1616075))
action count
action less
action union
action find_reverse_tuple_counts
relation P449
type Q1616075
type Q15961987
action find_reverse_tuple_counts
relation P449
type Q1616075
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q3587
relation P449
type Q15961987
type Q15416
[[{'concept': 'Q15961987'}, {'concept': 'Q15416'}], 'P449', {'concept': 'Q1616075'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?m WHERE { { ?a property:P449 ?m . ?m rdf:type ontology:Q1616075 . ?a rdf:type ontology:Q15961987 } UNION { ?a property:P449 ?m . ?m rdf:type ontology:Q1616075 . ?a rdf:type ontology:Q15416 } } GROUP BY ?m } . FILTER ( ?l < ?g ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:P449 resource:Q3587 . { { ?r rdf:type ontology:Q15416 } UNION { ?r rdf:type ontology:Q15961987 } } } } }
action count
action less
action union
action find_reverse_tuple_counts
relation original network
type television station
type television genre
action find_reverse_tuple_counts
relation original network
type television station
type television program
action count
action filter_multi_types
action find_reverse
entity Rede Globo
relation original network
type television genre
type television program
[[{'concept': 'television genre'}, {'concept': 'television program'}], 'original network', {'concept': 'television station'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?m WHERE { { ?a property:original_network ?m . ?m rdf:type ontology:television_station . ?a rdf:type ontology:television_genre } UNION { ?a property:original_network ?m . ?m rdf:type ontology:television_station . ?a rdf:type ontology:television_program } } GROUP BY ?m } . FILTER ( ?l < ?g ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:original_network resource:Rede_Globo . { { ?r rdf:type ontology:television_program } UNION { ?r rdf:type ontology:television_genre } } } } }
[]
television station television genre television program
SYSTEM
50
Q5975140 Q908659 Q2532517 Q1458581 Q7285335 Q781365 Q2625977 Q7305682 Q1432195 Q3069919 Q3579304 Q262386 Q5030976 Q1190356 Q2713068 Q1090363 Q206272 Q512381 Q640903 Q4406343 Q19666 Q7696975 Q136538 Q2377499 Q5476939 Q9035455 Q830215 Q2629071 Q5975073 Q2252456 Q844972 Q1532871 Q154958 Q14692165 Q965371 Q1058645 Q4650041 Q4650042 Q767920 Q3062264 Q4650199 Q3600480 Q22566818 Q4253475 Q4764378 Q614539 Q215616 Q7679675 Q26268757 Q379052
(c(Q15961987)|c(Q15416),P449,c(Q1616075))
action count
action less
action union
action find_reverse_tuple_counts
relation P449
type Q1616075
type Q15961987
action find_reverse_tuple_counts
relation P449
type Q1616075
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q3587
relation P449
type Q15961987
type Q15416
[ANSWER]
[[{'concept': 'Q15961987'}, {'concept': 'Q15416'}], 'P449', {'concept': 'Q1616075'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?m WHERE { { ?a property:P449 ?m . ?m rdf:type ontology:Q1616075 . ?a rdf:type ontology:Q15961987 } UNION { ?a property:P449 ?m . ?m rdf:type ontology:Q1616075 . ?a rdf:type ontology:Q15416 } } GROUP BY ?m } . FILTER ( ?l < ?g ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:P449 resource:Q3587 . { { ?r rdf:type ontology:Q15416 } UNION { ?r rdf:type ontology:Q15961987 } } } } }
ITV Tyne Tees Seven Network Channel 2 Rede Record Raj Network Australian Broadcasting Corporation France Ô TV Gazeta Nine Network TV Cultura Q ORF Canal 5 RTBF Rede Bandeirantes RedeTV! UPN OLN Hum TV Sprout Current TV Television South Telemundo Nickelodeon Fox Sports Fox+ E! ANT1 ITV Meridian TG4 The WB City Nickelodeon Maryland Public Television SBT American Heroes Channel ABC2 ABC ME Network Ten MTV Brasil ABC News 24 ABC The Online Network Rede Manchete Anhui Television Calle 13 PBS CNN Philippines HBO Hungary Adult Swim
50
action count
action less
action union
action find_reverse_tuple_counts
relation original network
type television station
type television genre
action find_reverse_tuple_counts
relation original network
type television station
type television program
action count
action filter_multi_types
action find_reverse
entity Rede Globo
relation original network
type television genre
type television program
[[{'concept': 'television genre'}, {'concept': 'television program'}], 'original network', {'concept': 'television station'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?m WHERE { { ?a property:original_network ?m . ?m rdf:type ontology:television_station . ?a rdf:type ontology:television_genre } UNION { ?a property:original_network ?m . ?m rdf:type ontology:television_station . ?a rdf:type ontology:television_program } } GROUP BY ?m } . FILTER ( ?l < ?g ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:original_network resource:Rede_Globo . { { ?r rdf:type ontology:television_program } UNION { ?r rdf:type ontology:television_genre } } } } }
[]