Simple Question (Direct)
Simple Question
Q3369374
P19
Q515
USER
Which city was Patrick Declerck born at ?
(Q3369374,P19,c(Q515))
action filter_type
action find
entity Q3369374
relation P19
type Q515
['Q3369374', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q3369374 property:P19 ?v . ?v rdf:type ontology:Q515 }
Patrick Declerck
action filter_type
action find
entity Patrick Declerck
relation place of birth
type city
['Patrick Declerck', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:Patrick_Declerck property:place_of_birth ?v . ?v rdf:type ontology:city }
[]
city
Q9005
SYSTEM
Brussels
Q9005
(Q3369374,P19,c(Q515))
action filter_type
action find
entity Q3369374
relation P19
type Q515
Patrick Declerck was born in [ANSWER]
['Q3369374', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q3369374 property:P19 ?v . ?v rdf:type ontology:Q515 }
Brussels
Patrick Declerck was born in Brussels
Brussels
action filter_type
action find
entity Patrick Declerck
relation place of birth
type city
['Patrick Declerck', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:Patrick_Declerck property:place_of_birth ?v . ?v rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9005
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that city ?
(Q9005,P1313,c(Q12737077))
action filter_type
action find
entity Q9005
relation P1313
type Q12737077
['Q9005', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q9005 property:P1313 ?g }
Brussels
action filter_type
action find
entity Brussels
relation office held by head of government
type occupation
['Brussels', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Brussels property:office_held_by_head_of_government ?g }
[]
occupation
Q435627
SYSTEM
Minister-President of the Brussels-Capital Region
Q435627
(Q9005,P1313,c(Q12737077))
action filter_type
action find
entity Q9005
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of that city
['Q9005', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q9005 property:P1313 ?g }
Minister-President of the Brussels-Capital Region
The Minister-President of the Brussels-Capital Region serves as the political office that is fulfilled by the head of the government of that city
Minister-President of the Brussels-Capital Region
action filter_type
action find
entity Brussels
relation office held by head of government
type occupation
['Brussels', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Brussels property:office_held_by_head_of_government ?g }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q251691
Q12737077
USER
And also tell me about San Jose?
(Q251691,P1313,c(Q12737077))
action filter_type
action find
entity Q251691
relation P1313
type Q12737077
['Q251691', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q251691 property:P1313 ?e . ?e rdf:type ontology:Q12737077 }
San Jose
action filter_type
action find
entity San Jose
relation office held by head of government
type occupation
['San Jose', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:San_Jose property:office_held_by_head_of_government ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q251691,P1313,c(Q12737077))
action filter_type
action find
entity Q251691
relation P1313
type Q12737077
[ANSWER]
['Q251691', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q251691 property:P1313 ?e . ?e rdf:type ontology:Q12737077 }
mayor
mayor
action filter_type
action find
entity San Jose
relation office held by head of government
type occupation
['San Jose', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:San_Jose property:office_held_by_head_of_government ?e . ?e rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q43669
P417
Q502895 Q12737077
USER
Which people are the patron saint of greater number of occupations than Thomas the Apostle ?
(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 Q43669
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:P417 ?a . ?a rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { resource:Q43669 property:P417 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?v > ?x ) }
Thomas 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 Thomas the Apostle
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:patron_saint ?a . ?a rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { resource:Thomas_the_Apostle property:patron_saint ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?v > ?x ) }
[]
common name occupation
Q166876 Q229190 Q44248
SYSTEM
Isidore of Seville, Catherine of Siena, Jerome
Q229190 Q328804 Q166876 Q170547 Q128538 Q183240 Q196653 Q44265 Q192816 Q43982 Q179718 Q43600 Q744884 Q151967 Q200895 Q44248
(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 Q43669
relation P417
type Q502895
[ANSWERS] are the patron saint of greater number of occupations than Thomas the Apostle
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:P417 ?a . ?a rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { resource:Q43669 property:P417 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?v > ?x ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Luke the Evangelist Saint Lucy Saint Veronica Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Zita Saint Blaise Agatha of Sicily Jerome
Isidore of Seville, Catherine of Siena and Jerome are the patron saint of greater number of occupations than Thomas the Apostle
Isidore of Seville Catherine of Siena Jerome
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Thomas the Apostle
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:patron_saint ?a . ?a rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { resource:Thomas_the_Apostle property:patron_saint ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?v > ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1270991
P417
Q502895 Q12737077
USER
And also tell me about Eugenius of Carthage?
(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 Q1270991
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:P417 ?e . ?e rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?e } . FILTER ( ?l > ?f ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:Q1270991 property:P417 ?c . ?c rdf:type ontology:Q502895 } } }
Eugenius of Carthage
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Eugenius of Carthage
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:patron_saint ?e . ?e rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?e } . FILTER ( ?l > ?f ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:Eugenius_of_Carthage property:patron_saint ?c . ?c rdf:type ontology:common_name } } }
[]
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 Q1270991
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:P417 ?e . ?e rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?e } . FILTER ( ?l > ?f ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:Q1270991 property:P417 ?c . ?c rdf:type ontology:Q502895 } } }
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 Eugenius of Carthage
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:patron_saint ?e . ?e rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?e } . FILTER ( ?l > ?f ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:Eugenius_of_Carthage property:patron_saint ?c . ?c rdf:type ontology:common_name } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q9438 Q60059 Q166876
P674
Q223393
USER
Which literary genres have the character Thomas Aquinas, Albertus Magnus and Isidore of Seville ?
(c(Q223393),P674,Q9438) (c(Q223393),P674,Q60059) (c(Q223393),P674,Q166876)
action union
action filter_type
action find_reverse
entity Q9438
relation P674
type Q223393
action filter_type
action find_reverse
entity Q60059
relation P674
type Q223393
action filter_type
action find_reverse
entity Q166876
relation P674
type Q223393
[{'concept': 'Q223393'}, 'P674', 'Q9438'] [{'concept': 'Q223393'}, 'P674', 'Q60059'] [{'concept': 'Q223393'}, 'P674', 'Q166876']
SELECT DISTINCT ?h WHERE { VALUES ( ?t ) { ( resource:Q9438 ) ( resource:Q60059 ) } . ?h property:P674 ?t }
Thomas Aquinas Albertus Magnus Isidore of Seville
action union
action filter_type
action find_reverse
entity Thomas Aquinas
relation characters
type literary genre
action filter_type
action find_reverse
entity Albertus Magnus
relation characters
type literary genre
action filter_type
action find_reverse
entity Isidore of Seville
relation characters
type literary genre
[{'concept': 'literary genre'}, 'characters', 'Thomas Aquinas'] [{'concept': 'literary genre'}, 'characters', 'Albertus Magnus'] [{'concept': 'literary genre'}, 'characters', 'Isidore of Seville']
SELECT DISTINCT ?h WHERE { VALUES ( ?t ) { ( resource:Thomas_Aquinas ) ( resource:Albertus_Magnus ) } . ?h property:characters ?t }
[]
literary genre
Q40185
SYSTEM
The Divine Comedy
Q40185
(c(Q223393),P674,Q9438) (c(Q223393),P674,Q60059) (c(Q223393),P674,Q166876)
action union
action filter_type
action find_reverse
entity Q9438
relation P674
type Q223393
action filter_type
action find_reverse
entity Q60059
relation P674
type Q223393
action filter_type
action find_reverse
entity Q166876
relation P674
type Q223393
[ANSWER] have the character Thomas Aquinas, Albertus Magnus and Isidore of Seville
[{'concept': 'Q223393'}, 'P674', 'Q9438'] [{'concept': 'Q223393'}, 'P674', 'Q60059'] [{'concept': 'Q223393'}, 'P674', 'Q166876']
SELECT DISTINCT ?h WHERE { VALUES ( ?t ) { ( resource:Q9438 ) ( resource:Q60059 ) } . ?h property:P674 ?t }
The Divine Comedy
The Divine Comedy have the character Thomas Aquinas, Albertus Magnus and Isidore of Seville
The Divine Comedy
action union
action filter_type
action find_reverse
entity Thomas Aquinas
relation characters
type literary genre
action filter_type
action find_reverse
entity Albertus Magnus
relation characters
type literary genre
action filter_type
action find_reverse
entity Isidore of Seville
relation characters
type literary genre
[{'concept': 'literary genre'}, 'characters', 'Thomas Aquinas'] [{'concept': 'literary genre'}, 'characters', 'Albertus Magnus'] [{'concept': 'literary genre'}, 'characters', 'Isidore of Seville']
SELECT DISTINCT ?h WHERE { VALUES ( ?t ) { ( resource:Thomas_Aquinas ) ( resource:Albertus_Magnus ) } . ?h property:characters ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40185
P361
Q2342494
USER
Which collectables are a component of that literary genre ?
(c(Q2342494),P361,Q40185)
action filter_type
action find_reverse
entity Q40185
relation P361
type Q2342494
[{'concept': 'Q2342494'}, 'P361', 'Q40185']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q2342494 . ?d property:P361 resource:Q40185 }
The Divine Comedy
action filter_type
action find_reverse
entity The Divine Comedy
relation part of
type collectable
[{'concept': 'collectable'}, 'part of', 'The Divine Comedy']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:collectable . ?d property:part_of resource:The_Divine_Comedy }
[]
collectable
Q2713307 Q605018 Q4509219
SYSTEM
Paradiso, Purgatorio, Inferno
Q2713307 Q605018 Q4509219
(c(Q2342494),P361,Q40185)
action filter_type
action find_reverse
entity Q40185
relation P361
type Q2342494
[ANSWERS] are a component of that literary genre
[{'concept': 'Q2342494'}, 'P361', 'Q40185']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q2342494 . ?d property:P361 resource:Q40185 }
Paradiso Purgatorio Inferno
Paradiso, Purgatorio and Inferno are a component of that literary genre
Paradiso Purgatorio Inferno
action filter_type
action find_reverse
entity The Divine Comedy
relation part of
type collectable
[{'concept': 'collectable'}, 'part of', 'The Divine Comedy']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:collectable . ?d property:part_of resource:The_Divine_Comedy }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2713307
P50
Q502895
USER
Who penned Paradiso ?
(Q2713307,P50,c(Q502895))
action filter_type
action find
entity Q2713307
relation P50
type Q502895
['Q2713307', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q2713307 property:P50 ?y . ?y rdf:type ontology:Q502895 }
Paradiso
action filter_type
action find
entity Paradiso
relation author
type common name
['Paradiso', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Paradiso property:author ?y . ?y rdf:type ontology:common_name }
[]
common name
Q1067
SYSTEM
Dante Alighieri
Q1067
(Q2713307,P50,c(Q502895))
action filter_type
action find
entity Q2713307
relation P50
type Q502895
[ANSWER] penned Paradiso
['Q2713307', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q2713307 property:P50 ?y . ?y rdf:type ontology:Q502895 }
Dante Alighieri
Dante Alighieri penned Paradiso
Dante Alighieri
action filter_type
action find
entity Paradiso
relation author
type common name
['Paradiso', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Paradiso property:author ?y . ?y rdf:type ontology:common_name }
[]