Simple Question (Direct)
Simple Question
Q3131329
P54
Q1194951
USER
Which national sports team is Zohib Islam Amiri a member of ?
(Q3131329,P54,c(Q1194951))
action filter_type
action find
entity Q3131329
relation P54
type Q1194951
['Q3131329', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1194951 . resource:Q3131329 property:P54 ?y }
Zohib Islam Amiri
action filter_type
action find
entity Zohib Islam Amiri
relation member of sports team
type national sports team
['Zohib Islam Amiri', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:national_sports_team . resource:Zohib_Islam_Amiri property:member_of_sports_team ?y }
[]
national sports team
Q192966
SYSTEM
Afghanistan national football team
Q192966
(Q3131329,P54,c(Q1194951))
action filter_type
action find
entity Q3131329
relation P54
type Q1194951
[ANSWER] is Zohib Islam Amiri a member of
['Q3131329', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1194951 . resource:Q3131329 property:P54 ?y }
Afghanistan national football team
Afghanistan national football team is Zohib Islam Amiri a member of
Afghanistan national football team
action filter_type
action find
entity Zohib Islam Amiri
relation member of sports team
type national sports team
['Zohib Islam Amiri', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:national_sports_team . resource:Zohib_Islam_Amiri property:member_of_sports_team ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3131329
P641
Q349
USER
Which sport was that person a part of ?
(Q192966,P641,c(Q349))
action filter_type
action find
entity Q3131329
relation P641
type Q349
['Q192966', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q3131329 property:P641 ?q . ?q rdf:type ontology:Q349 }
Zohib Islam Amiri
action filter_type
action find
entity Zohib Islam Amiri
relation sport
type sport
['Afghanistan national football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Zohib_Islam_Amiri property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q192966,P641,c(Q349))
action filter_type
action find
entity Q3131329
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q192966', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q3131329 property:P641 ?q . ?q rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Zohib Islam Amiri
relation sport
type sport
['Afghanistan national football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Zohib_Islam_Amiri property:sport ?q . ?q rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q17045626 Q3131329
P641
Q349
USER
And also Ertuğrul Şerbetçi
AND((Q3131329,P641,c(Q349)), (Q17045626,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q3131329
relation P641
action find
entity Q17045626
relation P641
type Q349
{'AND': [['Q3131329', 'P641', {'concept': 'Q349'}], ['Q17045626', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q349 . resource:Q17045626 property:P641 ?p . resource:Q3131329 property:P641 ?p }
Ertuğrul Şerbetçi Zohib Islam Amiri
action filter_type
action intersection
action find
entity Zohib Islam Amiri
relation sport
action find
entity Ertuğrul Şerbetçi
relation sport
type sport
{'AND': [['Zohib Islam Amiri', 'sport', {'concept': 'sport'}], ['Ertuğrul Şerbetçi', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sport . resource:Ertuğrul_Şerbetçi property:sport ?p . resource:Zohib_Islam_Amiri property:sport ?p }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q3131329,P641,c(Q349)), (Q17045626,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q3131329
relation P641
action find
entity Q17045626
relation P641
type Q349
[ANSWER]
{'AND': [['Q3131329', 'P641', {'concept': 'Q349'}], ['Q17045626', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q349 . resource:Q17045626 property:P641 ?p . resource:Q3131329 property:P641 ?p }
association football
association football
action filter_type
action intersection
action find
entity Zohib Islam Amiri
relation sport
action find
entity Ertuğrul Şerbetçi
relation sport
type sport
{'AND': [['Zohib Islam Amiri', 'sport', {'concept': 'sport'}], ['Ertuğrul Şerbetçi', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sport . resource:Ertuğrul_Şerbetçi property:sport ?p . resource:Zohib_Islam_Amiri property:sport ?p }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2058977
P841
Q573 Q186081 Q502895
USER
Which people have less number of days or time intervals as principal feast day than Denis of the Nativity ?
(c(Q502895),P841,c(Q573)|c(Q186081))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
action count
action filter_multi_types
action find
entity Q2058977
relation P841
type Q573
type Q186081
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?h WHERE { { ?h rdf:type ontology:Q502895 . ?a rdf:type ontology:Q573 . ?h property:P841 ?a } UNION { ?h property:P841 ?a . ?h rdf:type ontology:Q502895 . ?a rdf:type ontology:Q186081 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Q2058977 property:P841 ?z . { { ?z rdf:type ontology:Q186081 } UNION { ?z rdf:type ontology:Q573 } } } } . FILTER ( ?x < ?o ) }
Denis of the Nativity
action less
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
action count
action filter_multi_types
action find
entity Denis of the Nativity
relation feast day
type day
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?h WHERE { { ?h rdf:type ontology:common_name . ?a rdf:type ontology:day . ?h property:feast_day ?a } UNION { ?h property:feast_day ?a . ?h rdf:type ontology:common_name . ?a rdf:type ontology:time_interval } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Denis_of_the_Nativity property:feast_day ?z . { { ?z rdf:type ontology:time_interval } UNION { ?z rdf:type ontology:day } } } } . FILTER ( ?x < ?o ) }
[]
day time interval common name
Q679784 Q3047912 Q167477
SYSTEM
Pier Giorgio Frassati, Seraphina Sforza, Anthony of Padua
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q573)|c(Q186081))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
action count
action filter_multi_types
action find
entity Q2058977
relation P841
type Q573
type Q186081
[ANSWERS] have less number of days or time intervals as principal feast day than Denis of the Nativity
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?h WHERE { { ?h rdf:type ontology:Q502895 . ?a rdf:type ontology:Q573 . ?h property:P841 ?a } UNION { ?h property:P841 ?a . ?h rdf:type ontology:Q502895 . ?a rdf:type ontology:Q186081 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Q2058977 property:P841 ?z . { { ?z rdf:type ontology:Q186081 } UNION { ?z rdf:type ontology:Q573 } } } } . FILTER ( ?x < ?o ) }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
Pier Giorgio Frassati, Seraphina Sforza and Anthony of Padua have less number of days or time intervals as principal feast day than Denis of the Nativity
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
action less
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
action count
action filter_multi_types
action find
entity Denis of the Nativity
relation feast day
type day
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?h WHERE { { ?h rdf:type ontology:common_name . ?a rdf:type ontology:day . ?h property:feast_day ?a } UNION { ?h property:feast_day ?a . ?h rdf:type ontology:common_name . ?a rdf:type ontology:time_interval } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Denis_of_the_Nativity property:feast_day ?z . { { ?z rdf:type ontology:time_interval } UNION { ?z rdf:type ontology:day } } } } . FILTER ( ?x < ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q114845
P841
Q573 Q186081 Q502895
USER
And what about Saint Afra?
(c(Q502895),P841,c(Q573)|c(Q186081))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
action count
action filter_multi_types
action find
entity Q114845
relation P841
type Q573
type Q186081
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) ?h WHERE { { ?h property:P841 ?n . ?h rdf:type ontology:Q502895 . ?n rdf:type ontology:Q573 } UNION { ?h rdf:type ontology:Q502895 . ?n rdf:type ontology:Q186081 . ?h property:P841 ?n } } GROUP BY ?h } . FILTER ( ?o < ?p ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Q114845 property:P841 ?w . { { ?w rdf:type ontology:Q573 } UNION { ?w rdf:type ontology:Q186081 } } } } }
Saint Afra
action less
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
action count
action filter_multi_types
action find
entity Saint Afra
relation feast day
type day
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) ?h WHERE { { ?h property:feast_day ?n . ?h rdf:type ontology:common_name . ?n rdf:type ontology:day } UNION { ?h rdf:type ontology:common_name . ?n rdf:type ontology:time_interval . ?h property:feast_day ?n } } GROUP BY ?h } . FILTER ( ?o < ?p ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Saint_Afra property:feast_day ?w . { { ?w rdf:type ontology:day } UNION { ?w rdf:type ontology:time_interval } } } } }
[]
day time interval common name
Q679784 Q3047912 Q167477
SYSTEM
Pier Giorgio Frassati, Seraphina Sforza, Anthony of Padua
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q573)|c(Q186081))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
action count
action filter_multi_types
action find
entity Q114845
relation P841
type Q573
type Q186081
[ANSWERS]
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) ?h WHERE { { ?h property:P841 ?n . ?h rdf:type ontology:Q502895 . ?n rdf:type ontology:Q573 } UNION { ?h rdf:type ontology:Q502895 . ?n rdf:type ontology:Q186081 . ?h property:P841 ?n } } GROUP BY ?h } . FILTER ( ?o < ?p ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Q114845 property:P841 ?w . { { ?w rdf:type ontology:Q573 } UNION { ?w rdf:type ontology:Q186081 } } } } }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
action less
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
action count
action filter_multi_types
action find
entity Saint Afra
relation feast day
type day
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) ?h WHERE { { ?h property:feast_day ?n . ?h rdf:type ontology:common_name . ?n rdf:type ontology:day } UNION { ?h rdf:type ontology:common_name . ?n rdf:type ontology:time_interval . ?h property:feast_day ?n } } GROUP BY ?h } . FILTER ( ?o < ?p ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Saint_Afra property:feast_day ?w . { { ?w rdf:type ontology:day } UNION { ?w rdf:type ontology:time_interval } } } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P825
Q502895 Q207628
USER
How many people are greater number of musical compositions dedicated to than that person ?
(c(Q207628),P825,c(Q502895))
[{'concept': 'Q207628'}, 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P825 ?y . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q502895 }
[{'concept': 'musical composition'}, 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:dedicated_to ?y . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:common_name }
[]
common name musical composition
Comparative|Count over More/Less|Single entity type|Clarification
Q679784
SYSTEM
Did you mean Pier Giorgio Frassati ?
(c(Q207628),P825,c(Q502895))
[ANSWER]
[{'concept': 'Q207628'}, 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P825 ?y . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q502895 }
Did you mean Pier Giorgio Frassati ?
Pier Giorgio Frassati
[{'concept': 'musical composition'}, 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:dedicated_to ?y . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Anthony of Padua. Could you tell me the answer for that?
(c(Q207628),P825,c(Q502895))
Q167477
[{'concept': 'Q207628'}, 'P825', {'concept': 'Q502895'}]
[{'concept': 'musical composition'}, 'dedicated to', {'concept': 'common name'}]
[]
SYSTEM
15
Q85210 Q150767 Q1948037 Q44039 Q443559 Q160257 Q66005 Q570845 Q502943 Q51056 Q472635 Q92467 Q538335 Q179858 Q41309
(c(Q207628),P825,c(Q502895))
[ANSWER]
[{'concept': 'Q207628'}, 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P825 ?y . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q502895 }
Karl Ritter von Stremayr Benjamin Britten Moritz Reichsgraf von Fries Ludwig II of Bavaria Elizabeth Sprague Coolidge Wanda Landowska Margrave Christian Ludwig of Brandenburg-Schwedt Joseph Franz von Lobkowitz Andrey Razumovsky Franz Joseph I of Austria Gustav, Prince of Vasa Theodor Avé-Lallemant Marianne Kirchgessner Urho Kekkonen Franz Liszt
15
[{'concept': 'musical composition'}, 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:dedicated_to ?y . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:common_name }
[]