Simple Question (Direct)
Simple Question
Q6558160
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Lisa Klinga ?
(Q6558160,P27,c(Q15617994))
action filter_type
action find
entity Q6558160
relation P27
type Q15617994
['Q6558160', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q6558160 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Lisa Klinga
action filter_type
action find
entity Lisa Klinga
relation country of citizenship
type designation for an administrative territorial entity
['Lisa Klinga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Lisa_Klinga property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q6558160,P27,c(Q15617994))
action filter_type
action find
entity Q6558160
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Lisa Klinga
['Q6558160', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q6558160 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Sweden
Sweden is the country of citizenship of Lisa Klinga
Sweden
action filter_type
action find
entity Lisa Klinga
relation country of citizenship
type designation for an administrative territorial entity
['Lisa Klinga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Lisa_Klinga property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34
P1001
Q12737077
USER
Which occupations have jurisdiction over that administrative territory ?
(c(Q12737077),P1001,Q34)
action filter_type
action find_reverse
entity Q34
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q34']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . ?s property:P1001 resource:Q34 }
Sweden
action filter_type
action find_reverse
entity Sweden
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Sweden']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . ?s property:applies_to_jurisdiction resource:Sweden }
[]
occupation
Q3315958 Q687075 Q1749063
SYSTEM
Minister for Justice, Prime Minister of Sweden, Minister for Foreign Affairs of Sweden
Q3315958 Q10655178 Q1749063 Q4806239 Q6865835 Q1268572 Q10686038 Q1850749 Q4346906 Q10686216 Q4189744 Q6865858 Q6508565 Q920108 Q10686263 Q687075 Q10686247
(c(Q12737077),P1001,Q34)
action filter_type
action find_reverse
entity Q34
relation P1001
type Q12737077
[ANSWERS] have jurisdiction over that administrative territory
[{'concept': 'Q12737077'}, 'P1001', 'Q34']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . ?s property:P1001 resource:Q34 }
Minister for Justice Member of the Riksdag Minister for Foreign Affairs of Sweden Minister for Nordic Cooperation Minister for Finance monarch of Sweden Minister for International Development Cooperation Speaker of the Parliament of Sweden Lord High Constable of Sweden Minister for the Environment Deputy Prime Minister of Sweden Minister for Gender Equality Affairs Leader of the Opposition Minister for Defence Minister for Education and Science Prime Minister of Sweden Minister for Health and Social Affairs
Minister for Justice, Prime Minister of Sweden and Minister for Foreign Affairs of Sweden have jurisdiction over that administrative territory
Minister for Justice Prime Minister of Sweden Minister for Foreign Affairs of Sweden
action filter_type
action find_reverse
entity Sweden
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Sweden']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . ?s property:applies_to_jurisdiction resource:Sweden }
[]
Clarification
Simple Question|Single Entity|Indirect
Q687075
P748
Q12737077
USER
Which occupation appointed that one ?
(Q687075,P748,c(Q12737077))
action filter_type
action find
entity Q687075
relation P748
type Q12737077
['Q687075', 'P748', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q687075 property:P748 ?z . ?z rdf:type ontology:Q12737077 }
Prime Minister of Sweden
action filter_type
action find
entity Prime Minister of Sweden
relation appointed by
type occupation
['Prime Minister of Sweden', 'appointed by', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Prime_Minister_of_Sweden property:appointed_by ?z . ?z rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q1749063
SYSTEM
Did you mean Minister for Foreign Affairs of Sweden ?
Q3315958 Q687075 Q1749063
(Q3315958,P748,c(Q12737077)) (Q687075,P748,c(Q12737077)) (Q1749063,P748,c(Q12737077))
[ANSWER]
['Q3315958', 'P748', {'concept': 'Q12737077'}] ['Q687075', 'P748', {'concept': 'Q12737077'}] ['Q1749063', 'P748', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q687075 property:P748 ?z . ?z rdf:type ontology:Q12737077 }
Minister for Justice Prime Minister of Sweden Minister for Foreign Affairs of Sweden
Did you mean Minister for Foreign Affairs of Sweden ?
Minister for Foreign Affairs of Sweden
['Minister for Justice', 'appointed by', {'concept': 'occupation'}] ['Prime Minister of Sweden', 'appointed by', {'concept': 'occupation'}] ['Minister for Foreign Affairs of Sweden', 'appointed by', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Prime_Minister_of_Sweden property:appointed_by ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Prime Minister of Sweden. Could you tell me the answer for that?
(Q687075,P748,c(Q12737077))
Q687075
['Q687075', 'P748', {'concept': 'Q12737077'}]
['Prime Minister of Sweden', 'appointed by', {'concept': 'occupation'}]
[]
Q1850749
SYSTEM
Speaker of the Parliament of Sweden
Q1850749
(Q687075,P748,c(Q12737077))
action filter_type
action find
entity Q687075
relation P748
type Q12737077
The [ANSWER] appointed that one
['Q687075', 'P748', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q687075 property:P748 ?z . ?z rdf:type ontology:Q12737077 }
Speaker of the Parliament of Sweden
The Speaker of the Parliament of Sweden appointed that one
Speaker of the Parliament of Sweden
action filter_type
action find
entity Prime Minister of Sweden
relation appointed by
type occupation
['Prime Minister of Sweden', 'appointed by', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Prime_Minister_of_Sweden property:appointed_by ?z . ?z rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q328804
P417
Q502895 Q12737077
USER
Which people are the names of person who are the patron saints of more number of occupations than John the Evangelist ?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q328804
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:P417 ?c . ?c rdf:type ontology:Q502895 . ?i rdf:type ontology:Q12737077 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { resource:Q328804 property:P417 ?f . ?f rdf:type ontology:Q502895 } } . FILTER ( ?s > ?m ) }
John the Evangelist
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity John the Evangelist
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:patron_saint ?c . ?c rdf:type ontology:common_name . ?i rdf:type ontology:occupation } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { resource:John_the_Evangelist property:patron_saint ?f . ?f rdf:type ontology:common_name } } . FILTER ( ?s > ?m ) }
[]
common name occupation
Q128538 Q43982 Q43600
SYSTEM
Luke the Evangelist, Bartholomew the Apostle, Matthew the Apostle
Q128538 Q192816 Q43982 Q179718 Q43600 Q200895
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q328804
relation P417
type Q502895
[ANSWERS] are the names of person who are the patron saints of more number of occupations than John the Evangelist
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:P417 ?c . ?c rdf:type ontology:Q502895 . ?i rdf:type ontology:Q12737077 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { resource:Q328804 property:P417 ?f . ?f rdf:type ontology:Q502895 } } . FILTER ( ?s > ?m ) }
Luke the Evangelist Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Agatha of Sicily
Luke the Evangelist, Bartholomew the Apostle and Matthew the Apostle are the names of person who are the patron saints of more number of occupations than John the Evangelist
Luke the Evangelist Bartholomew the Apostle Matthew the Apostle
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity John the Evangelist
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:patron_saint ?c . ?c rdf:type ontology:common_name . ?i rdf:type ontology:occupation } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { resource:John_the_Evangelist property:patron_saint ?f . ?f rdf:type ontology:common_name } } . FILTER ( ?s > ?m ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1141472
P417
Q502895 Q12737077
USER
And also tell me about Roger of Cannae?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q1141472
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P417 ?a . ?a rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { resource:Q1141472 property:P417 ?i . ?i rdf:type ontology:Q502895 } } . FILTER ( ?j > ?g ) }
Roger of Cannae
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Roger of Cannae
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:patron_saint ?a . ?a rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { resource:Roger_of_Cannae property:patron_saint ?i . ?i rdf:type ontology:common_name } } . FILTER ( ?j > ?g ) }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q1141472
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P417 ?a . ?a rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { resource:Q1141472 property:P417 ?i . ?i rdf:type ontology:Q502895 } } . FILTER ( ?j > ?g ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Roger of Cannae
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:patron_saint ?a . ?a rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { resource:Roger_of_Cannae property:patron_saint ?i . ?i rdf:type ontology:common_name } } . FILTER ( ?j > ?g ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do atmost 7171 people know to play ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 7171
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?e ) WHERE { ?r property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?e <= 7171 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 7171
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?e ) WHERE { ?r property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?e <= 7171 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 7171
Atmost 7171 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?e ) WHERE { ?r property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?e <= 7171 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Atmost 7171 people know about davul, harpsichord and Wurlitzer electric piano
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 7171
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?e ) WHERE { ?r property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?e <= 7171 ) }
[]