Simple Question (Direct)
Simple Question
Q2770745
P21
Q290
USER
Which sex does Naomi Ellemers possess ?
(Q2770745,P21,c(Q290))
action filter_type
action find
entity Q2770745
relation P21
type Q290
['Q2770745', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q2770745 property:P21 ?r . ?r rdf:type ontology:Q290 }
Naomi Ellemers
action filter_type
action find
entity Naomi Ellemers
relation gender
type sex
['Naomi Ellemers', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Naomi_Ellemers property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q2770745,P21,c(Q290))
action filter_type
action find
entity Q2770745
relation P21
type Q290
Naomi Ellemers possesses a [ANSWER]
['Q2770745', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q2770745 property:P21 ?r . ?r rdf:type ontology:Q290 }
female
Naomi Ellemers possesses a female
female
action filter_type
action find
entity Naomi Ellemers
relation gender
type sex
['Naomi Ellemers', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Naomi_Ellemers property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2770745
P106
Q12737077
USER
Which occupations are the professions of that person ?
(Q6581072,P106,c(Q12737077))
action filter_type
action find
entity Q2770745
relation P106
type Q12737077
['Q6581072', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q2770745 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Naomi Ellemers
action filter_type
action find
entity Naomi Ellemers
relation occupation
type occupation
['female', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Naomi_Ellemers property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q212980 Q1622272
SYSTEM
psychologist, university teacher
Q212980 Q1622272
(Q6581072,P106,c(Q12737077))
action filter_type
action find
entity Q2770745
relation P106
type Q12737077
The professions of that person are a [ANSWERS]
['Q6581072', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q2770745 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
psychologist university teacher
The professions of that person are a psychologist and university teacher
psychologist university teacher
action filter_type
action find
entity Naomi Ellemers
relation occupation
type occupation
['female', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Naomi_Ellemers property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q587596
P417
Q502895 Q12737077
USER
Which people are the names of person who are the patron saints of greater number of occupations than Magnus of Anagni ?
(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 Q587596
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P417 ?e . ?b rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { resource:Q587596 property:P417 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?j > ?t ) }
Magnus of Anagni
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Magnus of Anagni
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:patron_saint ?e . ?b rdf:type ontology:occupation . ?e rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { resource:Magnus_of_Anagni property:patron_saint ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?j > ?t ) }
[]
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 Q587596
relation P417
type Q502895
[ANSWERS] are the names of person who are the patron saints of greater number of occupations than Magnus of Anagni
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P417 ?e . ?b rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { resource:Q587596 property:P417 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?j > ?t ) }
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 and Isidore of Seville are the names of person who are the patron saints of greater number of occupations than Magnus of Anagni
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 Magnus of Anagni
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:patron_saint ?e . ?b rdf:type ontology:occupation . ?e rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { resource:Magnus_of_Anagni property:patron_saint ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?j > ?t ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q60059
P1412
Q34770
USER
Which language does that person speak in ?
(Q60059,P1412,c(Q34770))
action filter_type
action find
entity Q60059
relation P1412
type Q34770
['Q60059', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q60059 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Albertus Magnus
action filter_type
action find
entity Albertus Magnus
relation languages spoken, written or signed
type language
['Albertus Magnus', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Albertus_Magnus property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
language
Clarification for simple ques.
Q9438
SYSTEM
Did you mean Thomas Aquinas ?
Q9438 Q60059 Q166876
(Q9438,P1412,c(Q34770)) (Q60059,P1412,c(Q34770)) (Q166876,P1412,c(Q34770))
[ANSWER]
['Q9438', 'P1412', {'concept': 'Q34770'}] ['Q60059', 'P1412', {'concept': 'Q34770'}] ['Q166876', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q60059 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Thomas Aquinas Albertus Magnus Isidore of Seville
Did you mean Thomas Aquinas ?
Thomas Aquinas
['Thomas Aquinas', 'languages spoken, written or signed', {'concept': 'language'}] ['Albertus Magnus', 'languages spoken, written or signed', {'concept': 'language'}] ['Isidore of Seville', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Albertus_Magnus property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
Simple Question (Coreferenced)
USER
No, I meant Albertus Magnus. Could you tell me the answer for that?
(Q60059,P1412,c(Q34770))
Q60059
['Q60059', 'P1412', {'concept': 'Q34770'}]
['Albertus Magnus', 'languages spoken, written or signed', {'concept': 'language'}]
[]
Q397
SYSTEM
Latin
Q397
(Q60059,P1412,c(Q34770))
action filter_type
action find
entity Q60059
relation P1412
type Q34770
That person speaks a [ANSWER]
['Q60059', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q60059 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Latin
That person speaks a Latin
Latin
action filter_type
action find
entity Albertus Magnus
relation languages spoken, written or signed
type language
['Albertus Magnus', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Albertus_Magnus property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q397
P407
Q2342494
USER
Which collectables use that one as language ?
(c(Q2342494),P407,Q397)
action filter_type
action find_reverse
entity Q397
relation P407
type Q2342494
[{'concept': 'Q2342494'}, 'P407', 'Q397']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2342494 . ?g property:P407 resource:Q397 }
Latin
action filter_type
action find_reverse
entity Latin
relation language of work or name
type collectable
[{'concept': 'collectable'}, 'language of work or name', 'Latin']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:collectable . ?g property:language_of_work_or_name resource:Latin }
[]
collectable
Q5244649 Q564358
SYSTEM
De Natura Fossilium, Annals
Q5244649 Q564358
(c(Q2342494),P407,Q397)
action filter_type
action find_reverse
entity Q397
relation P407
type Q2342494
[ANSWERS] use that one as language
[{'concept': 'Q2342494'}, 'P407', 'Q397']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2342494 . ?g property:P407 resource:Q397 }
De Natura Fossilium Annals
De Natura Fossilium and Annals use that one as language
De Natura Fossilium Annals
action filter_type
action find_reverse
entity Latin
relation language of work or name
type collectable
[{'concept': 'collectable'}, 'language of work or name', 'Latin']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:collectable . ?g property:language_of_work_or_name resource:Latin }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1605745
P20
Q56061
USER
Where did the demise of Henri Bédarida occur ?
(Q1605745,P20,c(Q56061))
action filter_type
action find
entity Q1605745
relation P20
type Q56061
['Q1605745', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q1605745 property:P20 ?l . ?l rdf:type ontology:Q56061 }
Henri Bédarida
action filter_type
action find
entity Henri Bédarida
relation place of death
type administrative territorial entity
['Henri Bédarida', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Henri_Bédarida property:place_of_death ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q1605745,P20,c(Q56061))
action filter_type
action find
entity Q1605745
relation P20
type Q56061
The demise of Henri Bédarida occurred in [ANSWER]
['Q1605745', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q1605745 property:P20 ?l . ?l rdf:type ontology:Q56061 }
Paris
The demise of Henri Bédarida occurred in Paris
Paris
action filter_type
action find
entity Henri Bédarida
relation place of death
type administrative territorial entity
['Henri Bédarida', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Henri_Bédarida property:place_of_death ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q90
P206
Q355304
USER
Which watercourse is located in the neighbourhood of that administrative territory ?
(Q90,P206,c(Q355304))
action filter_type
action find
entity Q90
relation P206
type Q355304
['Q90', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?m WHERE { resource:Q90 property:P206 ?m . ?m rdf:type ontology:Q355304 }
Paris
action filter_type
action find
entity Paris
relation located next to body of water
type watercourse
['Paris', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?m WHERE { resource:Paris property:located_next_to_body_of_water ?m . ?m rdf:type ontology:watercourse }
[]
watercourse
Q1471
SYSTEM
Seine
Q1471
(Q90,P206,c(Q355304))
action filter_type
action find
entity Q90
relation P206
type Q355304
[ANSWER] is located in the neighbourhood of that administrative territory
['Q90', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?m WHERE { resource:Q90 property:P206 ?m . ?m rdf:type ontology:Q355304 }
Seine
Seine is located in the neighbourhood of that administrative territory
Seine
action filter_type
action find
entity Paris
relation located next to body of water
type watercourse
['Paris', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?m WHERE { resource:Paris property:located_next_to_body_of_water ?m . ?m rdf:type ontology:watercourse }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1471 Q142 Q665827
P17
Q15617994
USER
Is Seine located in France and Fretterode ?
(Q1471,P17,Q142) (Q1471,P17,Q665827)
action is_in
entity Q1471
action intersection
action find_reverse
entity Q142
relation P17
action find_reverse
entity Q665827
relation P17
['Q1471', 'P17', 'Q142'] ['Q1471', 'P17', 'Q665827']
ASK WHERE { resource:Q1471 property:P17 resource:Q142 . resource:Q1471 property:P17 resource:Q665827 }
Seine France Fretterode
action is_in
entity Seine
action intersection
action find_reverse
entity France
relation country
action find_reverse
entity Fretterode
relation country
['Seine', 'country', 'France'] ['Seine', 'country', 'Fretterode']
ASK WHERE { resource:Seine property:country resource:France . resource:Seine property:country resource:Fretterode }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q1471,P17,Q142) (Q1471,P17,Q665827)
action is_in
entity Q1471
action intersection
action find_reverse
entity Q142
relation P17
action find_reverse
entity Q665827
relation P17
[ANSWER]
['Q1471', 'P17', 'Q142'] ['Q1471', 'P17', 'Q665827']
ASK WHERE { resource:Q1471 property:P17 resource:Q142 . resource:Q1471 property:P17 resource:Q665827 }
YES and NO respectively
action is_in
entity Seine
action intersection
action find_reverse
entity France
relation country
action find_reverse
entity Fretterode
relation country
['Seine', 'country', 'France'] ['Seine', 'country', 'Fretterode']
ASK WHERE { resource:Seine property:country resource:France . resource:Seine property:country resource:Fretterode }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q2342494 Q95074 Q3895768
USER
Which collectables contain atleast 2 fictional characters and fictional locations ?
(c(Q95074)|c(Q3895768),P1441,c(Q2342494))
action atleast
action union
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q95074
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q3895768
value 2
[[{'concept': 'Q95074'}, {'concept': 'Q3895768'}], 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) ?g WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:Q3895768 ) ( ontology:Q95074 ) } } GROUP BY ?g } . FILTER ( ?z >= 2 ) }
action atleast
action union
action find_reverse_tuple_counts
relation present in work
type collectable
type fictional character
action find_reverse_tuple_counts
relation present in work
type collectable
type fictional location
value 2
[[{'concept': 'fictional character'}, {'concept': 'fictional location'}], 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) ?g WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:fictional_location ) ( ontology:fictional_character ) } } GROUP BY ?g } . FILTER ( ?z >= 2 ) }
[]
collectable fictional character fictional location
Q140527 Q92640 Q218950
SYSTEM
The Three Musketeers, Alice's Adventures in Wonderland, Prince Caspian
Q220331 Q332388 Q3202526 Q218950 Q15228 Q467139 Q742753 Q92640 Q79762 Q897685 Q74287 Q16998127 Q130924 Q1771810 Q19867004 Q140527 Q929184 Q208460 Q181488
(c(Q95074)|c(Q3895768),P1441,c(Q2342494))
action atleast
action union
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q95074
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q3895768
value 2
[ANSWERS] contain atleast 2 fictional characters and fictional locations
[[{'concept': 'Q95074'}, {'concept': 'Q3895768'}], 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) ?g WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:Q3895768 ) ( ontology:Q95074 ) } } GROUP BY ?g } . FILTER ( ?z >= 2 ) }
Through the Looking-Glass The Two Towers Atlantida Prince Caspian The Lord of the Rings The Player of Games Bambi, A Life in the Woods Alice's Adventures in Wonderland The Silmarillion The Silence of the Lambs The Hobbit Kara-Tur: The Eastern Realms Kalevala A Wizard of Earthsea Baldur's Gate The Three Musketeers Hannibal Nineteen Eighty-Four Gulliver's Travels
The Three Musketeers, Alice's Adventures in Wonderland and Prince Caspian contain atleast 2 fictional characters and fictional locations
The Three Musketeers Alice's Adventures in Wonderland Prince Caspian
action atleast
action union
action find_reverse_tuple_counts
relation present in work
type collectable
type fictional character
action find_reverse_tuple_counts
relation present in work
type collectable
type fictional location
value 2
[[{'concept': 'fictional character'}, {'concept': 'fictional location'}], 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) ?g WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:fictional_location ) ( ontology:fictional_character ) } } GROUP BY ?g } . FILTER ( ?z >= 2 ) }
[]