Simple Question (Direct)
Simple Question
Q809977
P19
Q56061
USER
Which administrative territory was Bashiru Gambo born at ?
(Q809977,P19,c(Q56061))
action filter_type
action find
entity Q809977
relation P19
type Q56061
['Q809977', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q809977 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Bashiru Gambo
action filter_type
action find
entity Bashiru Gambo
relation place of birth
type administrative territorial entity
['Bashiru Gambo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Bashiru_Gambo property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q182059
SYSTEM
Kumasi
Q182059
(Q809977,P19,c(Q56061))
action filter_type
action find
entity Q809977
relation P19
type Q56061
Bashiru Gambo was born in [ANSWER]
['Q809977', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q809977 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Kumasi
Bashiru Gambo was born in Kumasi
Kumasi
action filter_type
action find
entity Bashiru Gambo
relation place of birth
type administrative territorial entity
['Bashiru Gambo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Bashiru_Gambo property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q809977
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q182059,P27,c(Q15617994))
action filter_type
action find
entity Q809977
relation P27
type Q15617994
['Q182059', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q809977 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Bashiru Gambo
action filter_type
action find
entity Bashiru Gambo
relation country of citizenship
type designation for an administrative territorial entity
['Kumasi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Bashiru_Gambo property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q117
SYSTEM
Ghana
Q117
(Q182059,P27,c(Q15617994))
action filter_type
action find
entity Q809977
relation P27
type Q15617994
That person belongs to a [ANSWER]
['Q182059', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q809977 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Ghana
That person belongs to a Ghana
Ghana
action filter_type
action find
entity Bashiru Gambo
relation country of citizenship
type designation for an administrative territorial entity
['Kumasi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Bashiru_Gambo property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q117
P1532
Q1194951
USER
Who represents that administrative territory ?
(c(Q1194951),P1532,Q117)
action filter_type
action find_reverse
entity Q117
relation P1532
type Q1194951
[{'concept': 'Q1194951'}, 'P1532', 'Q117']
SELECT DISTINCT ?k WHERE { ?k property:P1532 resource:Q117 . ?k rdf:type ontology:Q1194951 }
Ghana
action filter_type
action find_reverse
entity Ghana
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Ghana']
SELECT DISTINCT ?k WHERE { ?k property:country_for_sport resource:Ghana . ?k rdf:type ontology:national_sports_team }
[]
national sports team
Q172014
SYSTEM
Ghana national football team
Q172014
(c(Q1194951),P1532,Q117)
action filter_type
action find_reverse
entity Q117
relation P1532
type Q1194951
[ANSWER] represents that administrative territory
[{'concept': 'Q1194951'}, 'P1532', 'Q117']
SELECT DISTINCT ?k WHERE { ?k property:P1532 resource:Q117 . ?k rdf:type ontology:Q1194951 }
Ghana national football team
Ghana national football team represents that administrative territory
Ghana national football team
action filter_type
action find_reverse
entity Ghana
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Ghana']
SELECT DISTINCT ?k WHERE { ?k property:country_for_sport resource:Ghana . ?k rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172014
P54
Q502895
USER
Who are a member of that national sports team ?
(c(Q502895),P54,Q172014)
action filter_type
action find_reverse
entity Q172014
relation P54
type Q502895
[{'concept': 'Q502895'}, 'P54', 'Q172014']
SELECT DISTINCT ?o WHERE { ?o property:P54 resource:Q172014 . ?o rdf:type ontology:Q502895 }
Ghana national football team
action filter_type
action find_reverse
entity Ghana national football team
relation member of sports team
type common name
[{'concept': 'common name'}, 'member of sports team', 'Ghana national football team']
SELECT DISTINCT ?o WHERE { ?o property:member_of_sports_team resource:Ghana_national_football_team . ?o rdf:type ontology:common_name }
[]
common name
Q151034 Q217097 Q310730
SYSTEM
Kevin-Prince Boateng, Richard Kingson, John Mensah
Q17631107 Q4665569 Q2944024 Q353602 Q7074680 Q4670512 Q5536380 Q44878 Q716118 Q17352137 Q5056166 Q809977 Q5218238 Q508255 Q20668457 Q3244032 Q6893320 Q1571468 Q1251433 Q10467375 Q7288868 Q6893196 Q5576361 Q5240303 Q17340549 Q7408432 Q17340544 Q817821 Q5560901 Q314734 Q706568 Q3724692 Q506696 Q3870076 Q16730455 Q8050431 Q543725 Q950088 Q937703 Q127396 Q2483239 Q3016737 Q550747 Q16732874 Q2707160 Q2895298 Q1682012 Q7610161 Q6389823 Q2346786 Q17352083 Q17352080 Q3703079 Q2259413 Q21067183 Q2260745 Q6449924 Q707797 Q7327625 Q2644665 Q317439 Q193768 Q346699 Q2700025 Q7610667 Q316388 Q2470177 Q44748 Q10515544 Q1571295 Q3810025 Q16150024 Q151034 Q367861 Q4832646 Q16229625 Q16105017 Q1971592 Q18044909 Q7782264 Q21207160 Q8021491 Q463106 Q1606408 Q614197 Q317347 Q1343594 Q298466 Q310677 Q346626 Q317389 Q2619044 Q3784515 Q931521 Q401166 Q1652377 Q299542 Q5163562 Q3013636 Q4893074 Q2620384 Q554119 Q612337 Q6769668 Q5646514 Q1162219 Q17340601 Q6503793 Q3675847 Q1360995 Q17352135 Q217097 Q5548517 Q980653 Q5536181 Q18421920 Q379603 Q2620543 Q3181448 Q5386566 Q392431 Q3277609 Q717760 Q151518 Q274632 Q2610239 Q213129 Q919182 Q6132652 Q2258286 Q577269 Q321136 Q5373127 Q472293 Q7599423 Q17340531 Q28705 Q5480561 Q667072 Q6450341 Q372988 Q2055861 Q3606209 Q2085698 Q6662681 Q10441931 Q16146209 Q2673319 Q7442371 Q978264 Q1778361 Q21622036 Q1343548 Q1337698 Q10530929 Q6943435 Q863026 Q1366185 Q2620496 Q336916 Q5216832 Q1794940 Q3856176 Q10374201 Q7410818 Q430391 Q535289 Q7146056 Q928103 Q8021624 Q17352193 Q95309 Q16235063 Q347540 Q778130 Q349590 Q4616298 Q917257 Q1367777 Q734723 Q2673247 Q6425719 Q317001 Q5350553 Q15935133 Q6005738 Q3771868 Q2457830 Q980185 Q970601 Q400112 Q3784526 Q7175344 Q3357204 Q17351850 Q6744055 Q617542 Q1656024 Q2044986 Q795312 Q17351858 Q350168 Q16729073 Q577537 Q3568087 Q2084844 Q2944662 Q8004397 Q6962269 Q1344021 Q17037502 Q7494938 Q5082326 Q6450071 Q4680999 Q3046795 Q2959538 Q132176 Q5504576 Q6433920 Q17352063 Q6893372 Q313725 Q7106470 Q14333541 Q2673278 Q1338168 Q16930867 Q222746 Q3498506 Q5250025 Q5401253 Q1776413 Q497799 Q743518 Q3732141 Q17352040 Q562670 Q7034365 Q6076923 Q4886019 Q17627273 Q7327930 Q5442133 Q511220 Q17351985 Q516921 Q4668749 Q6833219 Q310043 Q323046 Q4283861 Q310730 Q2069656 Q7610134 Q713883 Q16148659 Q3603410 Q8564912 Q8002679 Q543156 Q454050 Q1389538 Q7411936 Q211151 Q2528907 Q1080076 Q799789 Q350277 Q313140 Q17351934 Q2471131 Q17352088 Q17351931 Q2659108 Q17352077 Q10554978 Q2628375 Q6289674 Q17352073 Q2620335 Q530838 Q3057121 Q10513740 Q1652349 Q5442121 Q16145994 Q1291505 Q350105 Q3640443 Q1353920 Q2011693 Q4668041 Q533646 Q969520 Q1809113 Q6828153 Q5386112 Q10733 Q16731125 Q586233 Q5346470 Q5479951 Q1189509 Q4888178 Q4816480 Q5485361 Q3784564 Q3603387 Q463054 Q3101386 Q439635 Q951342 Q16729330 Q17352079 Q961670 Q7610135 Q5918427 Q2944042 Q2027025 Q743702 Q1081669 Q932907 Q4967374 Q707240 Q2919249 Q552840 Q525514 Q10556681
(c(Q502895),P54,Q172014)
action filter_type
action find_reverse
entity Q172014
relation P54
type Q502895
A member of that national sports team are Prince [ANSWERS]
[{'concept': 'Q502895'}, 'P54', 'Q172014']
SELECT DISTINCT ?o WHERE { ?o property:P54 resource:Q172014 . ?o rdf:type ontology:Q502895 }
John Essien Abdul Mumuni Rashid Sumaila Eric Addo Obed Owusu Abubakari Kankani George Appiah Jonathan Mensah John Boye Samuel Stevens Sampene Cecil Jones Attuquayefio Bashiru Gambo Daniel Nana Yeboah Daniel Agyei George Arthur Daniel Edusei Mohammed Sannie Yussif Chibsah Samuel Johnson Jones Awuah Raman Chibsah Mohammed Martin Mensah Godfred Yeboah David Telfer Sam Acquah Samad Oppong Oliver Acquah Bennard Yao Kumordzi Gilbert Fiamenyo Anthony Annan Yaw Preko Emmanuel Osei Bright Addae Nana Bediako Joshua Tijani Yaw Amankwah Mireku Charles Takyi Kwame Ayew Laryea Kingston Francis Bossman Patrick Agyemang Isaac Cofie Jerry Akaminko Moro Abubakar Afriyie Acquah Ben Acheampong Sammi Adjei Stephen Owusu Kenneth Asamoah Ibrahim Dossey Samuel Anum Okai Clifford Odame David Accam Mohammed Gargo Hans Kwofie Augustine Ahinful Kwabena Boafo Razak Pimpong Richard Manu Alfred Arthur Karim Abdul Razak Sulley Muntari Isaac Vorsah Jonathan Quartey Stephen Tetteh Hans Sarpei Lawrence Adjei Mohammed Rabiu Frank Odoi Abubakari Yahuza Jordan Opoku Samuel Afful Kevin-Prince Boateng Jordan Ayew Aziz Ansah Kennedy Boateng Joseph Agyemang-Gyau Baba Adamu Bernard Mensah Theophidack Nti Daniel Nii Adjei Willie Evans Junior Agogo Henry Acquah Arthur Moses Abdul Majeed Waris Nii Lamptey Kwadwo Asamoah Dominic Adiyiah Prince Tagoe Baba Rahman Emmanuel Osei Kuffour Shamo Quaye Opoku Nti Ahmed Barusso Simon Addo Derek Boateng Constance Mantey Daniel Addo Bernard Dong Bortey Edmund Owusu-Ansah Robert Boateng Fatau Dauda Mark Sekyere Hamza Mohammed Daniel Quaye Gbadamosi Amosa Lawrence Adjah-Tetteh Chris Dickson Skelley Adu Tutu Yaw Sam Richard Kingson Daniel Amartey Mubarak Wakaso George Alhassan Godwin Osei Bonsu Tony Yeboah Abubakari Yakubu John Eshun Eric Gawu Kwame Quansah Mahatma Otoo Dominic Oduro Alfred Duncan Avram Grant Moussa Narry John Paintsil Christian Atsu James Dissiramah Owusu Benson Razak Nuhu Charles Amoah Emmanuel Ansong Otto Addo Stanley Aborah Gariba Abukari James Kwesi Appiah Francis Coffie Louis Agyemang Kwesi Appiah Alex Nyarko William Kwabena Tiero Afo Dodoo Phil Ofosu-Ayeh Lloyd Owusu Joseph Hendricks Alfred Nelson Albert Adomah Sebastian Barnes Frank Amankwah Koffi Amponsah Baba Mensah Issah Gabriel Ahmed Mark Edusei Nathaniel Asamoah Mustapha Essuman Peter Ofori-Quaye Samuel Yeboah Elvis Hammond Abedi Pele Daniel Coleman Kweku Essien Michael Helegbe Stephen Adams Samuel Ayew Yeboah Daniel Ashley Addo Cofie Bekoe Patrick Antwi Francis Dickoh Willie Klutse Joseph Wilson Anthony Baffoe Nuru Sulley Joseph Aziz George Blay Lee Addy Yaw Antwi Brimah Razak Joetex Asamoah Frimpong Illiasu Shilla Mohamed Awal Kofi Nti Boakye Sammy Adjei Ekow Benson Kwasi Owusu Imoro Lukman Gladson Awako Lloyd Sam Richmond Boakye Ransford Osei Kwadwo Poku Ebenezer Hagan Peter Lamptey Osei Kofi Akuetteh Armah Mallam Yahaya David Addy Ibrahim Sunday Paa Nii Lutterodt Nana Akwasi Asare Edward Boye Samuel Inkoom Francis Morton Harrison Afful Wilberforce Mfum Abdoul Rahman Issah Frank Acheampong William Amamoo Nana Arhin Duah George Owu Kwadwo Poku Sherif Danladi Charles Sampson Kwame Boateng Addae Kyenkyehene Eben Dugbatey Charles Gyamfi Malik Jabir Frimpong Manso Kotei Blankson Alex Mingle Mohammed Takiyudin Matthew Amoah Osei Boateng Lê Văn Tân Solomon Asante Emmanuel Baffour Armah Akuetteh Asamoah Gyan Stephen Baidoo Deen Sheriff Mohammed Prince Koranteng Amoako Ali Ibrahim Derek Asamoah Emmanuel Clottey Ernest Sowah Addoquaye Laryea Karim Alhassan Nii Welbeck Isaac Paha Ben Koufie Joshua Otoo Richard Mpong Felix Baffoe Emmanuel Agyemang-Badu Bernard Kusi André Ayew Abraham Annan Michael Ofosu-Appiah Emmanuel Frimpong Jeffrey Schlupp Kim Grant John Mensah Richard Ackon Stephen Oduro Mohammed Abu Theophilus Annorbaah Abdullah Fusseini Foster Bastios Will Antwi Charles Akonnor Philemon McCarthy Alex Tachie-Mensah Samuel Kyere Stephen Appiah King Gyan Christian Gyan Baffour Gyan Adam Larsen Kwarasey Quincy Owusu-Abeyie Henry France Masahudu Alhassan Kofi Pare Robert Foley Godwin Attram Emmanuel Kwesi Nkansah Sarfo Gyamfi Ibrahim Abdul Razak Joshua Boateng John Bortey Naawu Anthony Obodai Robert Mensah Ernest Papa Arko Gideon Baah Charles Asampong Taylor Felix Aboagye Abeiku Ainooson Edward Acquah Patrick Allotey Bismark Ekye Habib Mohamed Patrick Nyarko Ablade Morgan Ibrahim Tanko Michael Essien Lawrence Aidoo Michael Akuffu Eric Bekoe Prince Buaben Kwabena Adusei Emmanuel Duah Edwin Gyimah Francis Akwaffo-Boateng Isaac Boakye Benjamin Acheampong Emmanuel Tetteh Frank Boateng Joe Addo Abdul Karim Ahmed Haminu Draman George Alhassan Ibrahim Ayew Samuel Kuffour Godfred Saka Emmanuel Oblitey Moses Sakyi Stephen Ofei Maxwell Konadu Richard Kissi Boateng Agyemang Opoku Prince Polley Christian Saba Daniel Opare Bright Allotey Godfried Aduobe Ishmael Addo Stephen Ahorlu Emmanuel Pappoe Ebenezer Assifuah
A member of that national sports team are Prince Kevin-Prince Boateng, Richard Kingson and John Mensah
Kevin-Prince Boateng Richard Kingson John Mensah
action filter_type
action find_reverse
entity Ghana national football team
relation member of sports team
type common name
[{'concept': 'common name'}, 'member of sports team', 'Ghana national football team']
SELECT DISTINCT ?o WHERE { ?o property:member_of_sports_team resource:Ghana_national_football_team . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q151034 Q370618
P451
Q502895
USER
How many people have Kevin-Prince Boateng or Melissa P. as relationship partner ?
(c(Q502895),P451,Q151034) (c(Q502895),P451,Q370618)
action count
action union
action filter_type
action find_reverse
entity Q151034
relation P451
type Q502895
action filter_type
action find_reverse
entity Q370618
relation P451
type Q502895
[{'concept': 'Q502895'}, 'P451', 'Q151034'] [{'concept': 'Q502895'}, 'P451', 'Q370618']
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { VALUES ( ?a ) { ( resource:Q151034 ) ( resource:Q370618 ) } . ?b property:P451 ?a }
Kevin-Prince Boateng Melissa P.
action count
action union
action filter_type
action find_reverse
entity Kevin-Prince Boateng
relation partner
type common name
action filter_type
action find_reverse
entity Melissa P.
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Kevin-Prince Boateng'] [{'concept': 'common name'}, 'partner', 'Melissa P.']
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { VALUES ( ?a ) { ( resource:Kevin-Prince_Boateng ) ( resource:Melissa_P. ) } . ?b property:partner ?a }
[]
common name
SYSTEM
2
Q1102536 Q6110661
(c(Q502895),P451,Q151034) (c(Q502895),P451,Q370618)
action count
action union
action filter_type
action find_reverse
entity Q151034
relation P451
type Q502895
action filter_type
action find_reverse
entity Q370618
relation P451
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P451', 'Q151034'] [{'concept': 'Q502895'}, 'P451', 'Q370618']
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { VALUES ( ?a ) { ( resource:Q151034 ) ( resource:Q370618 ) } . ?b property:P451 ?a }
Melissa Satta Rodrigo Cuba
2
action count
action union
action filter_type
action find_reverse
entity Kevin-Prince Boateng
relation partner
type common name
action filter_type
action find_reverse
entity Melissa P.
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Kevin-Prince Boateng'] [{'concept': 'common name'}, 'partner', 'Melissa P.']
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { VALUES ( ?a ) { ( resource:Kevin-Prince_Boateng ) ( resource:Melissa_P. ) } . ?b property:partner ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q151034
P451
Q502895
USER
How many people have Kevin-Prince Boateng as their girlfriend ?
(c(Q502895),P451,Q151034)
action count
action filter_type
action find_reverse
entity Q151034
relation P451
type Q502895
[{'concept': 'Q502895'}, 'P451', 'Q151034']
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:P451 resource:Q151034 . ?w rdf:type ontology:Q502895 }
Kevin-Prince Boateng
action count
action filter_type
action find_reverse
entity Kevin-Prince Boateng
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Kevin-Prince Boateng']
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:partner resource:Kevin-Prince_Boateng . ?w rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q1102536
(c(Q502895),P451,Q151034)
action count
action filter_type
action find_reverse
entity Q151034
relation P451
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P451', 'Q151034']
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:P451 resource:Q151034 . ?w rdf:type ontology:Q502895 }
Melissa Satta
1
action count
action filter_type
action find_reverse
entity Kevin-Prince Boateng
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Kevin-Prince Boateng']
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:partner resource:Kevin-Prince_Boateng . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q6308616
P451
Q502895
USER
And what about Julieanne Newbould?
(c(Q502895),P451,Q6308616)
action count
action filter_type
action find_reverse
entity Q6308616
relation P451
type Q502895
[{'concept': 'Q502895'}, 'P451', 'Q6308616']
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { ?y property:P451 resource:Q6308616 . ?y rdf:type ontology:Q502895 }
Julieanne Newbould
action count
action filter_type
action find_reverse
entity Julieanne Newbould
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Julieanne Newbould']
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { ?y property:partner resource:Julieanne_Newbould . ?y rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q242654
(c(Q502895),P451,Q6308616)
action count
action filter_type
action find_reverse
entity Q6308616
relation P451
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P451', 'Q6308616']
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { ?y property:P451 resource:Q6308616 . ?y rdf:type ontology:Q502895 }
Paul Keating
1
action count
action filter_type
action find_reverse
entity Julieanne Newbould
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Julieanne Newbould']
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { ?y property:partner resource:Julieanne_Newbould . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can around 2066 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2066
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:P1303 ?v . ?o rdf:type ontology:Q502895 . ?v rdf:type ontology:Q34379 } GROUP BY ?v } . FILTER ( ?p = 2066 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2066
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:instrument ?v . ?o rdf:type ontology:common_name . ?v rdf:type ontology:musical_instrument } GROUP BY ?v } . FILTER ( ?p = 2066 ) }
[]
musical instrument common name
Q46185 Q80019 Q8338
SYSTEM
bass guitar, double bass, trumpet
Q46185 Q80019 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2066
[ANSWERS] can around 2066 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:P1303 ?v . ?o rdf:type ontology:Q502895 . ?v rdf:type ontology:Q34379 } GROUP BY ?v } . FILTER ( ?p = 2066 ) }
bass guitar double bass trumpet cello organ drum kit
Bass guitar, double bass and trumpet can around 2066 people perform with
bass guitar double bass trumpet
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2066
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:instrument ?v . ?o rdf:type ontology:common_name . ?v rdf:type ontology:musical_instrument } GROUP BY ?v } . FILTER ( ?p = 2066 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q8338
P425
Q12737077
USER
Which occupation does that musical instrument belong to ?
(c(Q12737077),P425,Q8338)
action filter_type
action find_reverse
entity Q8338
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q8338']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . ?w property:P425 resource:Q8338 }
trumpet
action filter_type
action find_reverse
entity trumpet
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'trumpet']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . ?w property:field_of_this_occupation resource:trumpet }
[]
occupation
Clarification for simple ques.
Q46185
SYSTEM
Did you mean bass guitar ?
Q46185 Q80019 Q8338
(c(Q12737077),P425,Q46185) (c(Q12737077),P425,Q80019) (c(Q12737077),P425,Q8338)
[ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q46185'] [{'concept': 'Q12737077'}, 'P425', 'Q80019'] [{'concept': 'Q12737077'}, 'P425', 'Q8338']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . ?w property:P425 resource:Q8338 }
bass guitar double bass trumpet
Did you mean bass guitar ?
bass guitar
[{'concept': 'occupation'}, 'field of this occupation', 'bass guitar'] [{'concept': 'occupation'}, 'field of this occupation', 'double bass'] [{'concept': 'occupation'}, 'field of this occupation', 'trumpet']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . ?w property:field_of_this_occupation resource:trumpet }
[]
Simple Question (Coreferenced)
USER
No, I meant trumpet. Could you tell me the answer for that?
(c(Q12737077),P425,Q8338)
Q8338
[{'concept': 'Q12737077'}, 'P425', 'Q8338']
[{'concept': 'occupation'}, 'field of this occupation', 'trumpet']
[]
Q17093672
SYSTEM
trumpeter
Q17093672
(c(Q12737077),P425,Q8338)
action filter_type
action find_reverse
entity Q8338
relation P425
type Q12737077
That musical instrument belongs to the [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q8338']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . ?w property:P425 resource:Q8338 }
trumpeter
That musical instrument belongs to the trumpeter
trumpeter
action filter_type
action find_reverse
entity trumpet
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'trumpet']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . ?w property:field_of_this_occupation resource:trumpet }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of approximately 1 occupation ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?u ) WHERE { ?j property:P417 ?c . ?c rdf:type ontology:Q502895 . ?j rdf:type ontology:Q12737077 } GROUP BY ?c } . FILTER ( ?u = 1 ) }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?u ) WHERE { ?j property:patron_saint ?c . ?c rdf:type ontology:common_name . ?j rdf:type ontology:occupation } GROUP BY ?c } . FILTER ( ?u = 1 ) }
[]
common name occupation
Q9438 Q60059 Q44281
SYSTEM
Thomas Aquinas, Albertus Magnus, Ignatius of Loyola
Q453698 Q152457 Q43689 Q163900 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q508214 Q9200 Q193507 Q463600 Q43669 Q40662 Q332656 Q320171 Q137947 Q80513 Q324700 Q44015 Q149727 Q232427 Q60059 Q17590 Q271474 Q276148
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[ANSWERS] are the patron saint of approximately 1 occupation
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?u ) WHERE { ?j property:P417 ?c . ?c rdf:type ontology:Q502895 . ?j rdf:type ontology:Q12737077 } GROUP BY ?c } . FILTER ( ?u = 1 ) }
Saint Amand Saint Roch Ambrose Saint Francis Xavier Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Urban of Langres John the Apostle Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Charalampus
Thomas Aquinas, Albertus Magnus and Ignatius of Loyola are the patron saint of approximately 1 occupation
Thomas Aquinas Albertus Magnus Ignatius of Loyola
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?u ) WHERE { ?j property:patron_saint ?c . ?c rdf:type ontology:common_name . ?j rdf:type ontology:occupation } GROUP BY ?c } . FILTER ( ?u = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q8338
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately the same number of people as trumpet ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q8338
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?h ) WHERE { ?z rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 . ?a property:P1303 ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:Q34379 . resource:Q8338 property:P1303 ?v } } . FILTER ( ?h = ?r ) }
trumpet
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity trumpet
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?h ) WHERE { ?z rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name . ?a property:instrument ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:musical_instrument . resource:trumpet property:instrument ?v } } . FILTER ( ?h = ?r ) }
[]
musical instrument common name
Q80284 Q46185 Q80019
SYSTEM
viola, bass guitar, double bass
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q8338
relation P1303
type Q34379
[ANSWERS] are played by approximately the same number of people as trumpet
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?h ) WHERE { ?z rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 . ?a property:P1303 ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:Q34379 . resource:Q8338 property:P1303 ?v } } . FILTER ( ?h = ?r ) }
viola bass guitar double bass trumpet cello organ drum kit electronic keyboard
Viola, bass guitar and double bass are played by approximately the same number of people as trumpet
viola bass guitar double bass
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity trumpet
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?h ) WHERE { ?z rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name . ?a property:instrument ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:musical_instrument . resource:trumpet property:instrument ?v } } . FILTER ( ?h = ?r ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q117 Q298
P463
Q43229
USER
How many organizations were Ghana and Chile a member of ?
(Q117,P463,c(Q43229)) (Q298,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q117
relation P463
type Q43229
action filter_type
action find
entity Q298
relation P463
type Q43229
['Q117', 'P463', {'concept': 'Q43229'}] ['Q298', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { resource:Q117 property:P463 ?k . ?k rdf:type ontology:Q43229 . ?k rdf:type ontology:Q43229 . resource:Q298 property:P463 ?k }
Ghana Chile
action count
action intersection
action filter_type
action find
entity Ghana
relation member of
type organization
action filter_type
action find
entity Chile
relation member of
type organization
['Ghana', 'member of', {'concept': 'organization'}] ['Chile', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { resource:Ghana property:member_of ?k . ?k rdf:type ontology:organization . ?k rdf:type ontology:organization . resource:Chile property:member_of ?k }
[]
organization
SYSTEM
5
Q7825 Q191384 Q656801 Q899770 Q827525
(Q117,P463,c(Q43229)) (Q298,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q117
relation P463
type Q43229
action filter_type
action find
entity Q298
relation P463
type Q43229
[ANSWER]
['Q117', 'P463', {'concept': 'Q43229'}] ['Q298', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { resource:Q117 property:P463 ?k . ?k rdf:type ontology:Q43229 . ?k rdf:type ontology:Q43229 . resource:Q298 property:P463 ?k }
World Trade Organization International Bank for Reconstruction and Development International Finance Corporation International Centre for Settlement of Investment Disputes International Development Association
5
action count
action intersection
action filter_type
action find
entity Ghana
relation member of
type organization
action filter_type
action find
entity Chile
relation member of
type organization
['Ghana', 'member of', {'concept': 'organization'}] ['Chile', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { resource:Ghana property:member_of ?k . ?k rdf:type ontology:organization . ?k rdf:type ontology:organization . resource:Chile property:member_of ?k }
[]