Simple Question (Direct)
Simple Question
Q5394106
P106
Q12737077
USER
What is the profession of Tomàs Cerdà ?
(Q5394106,P106,c(Q12737077))
action filter_type
action find
entity Q5394106
relation P106
type Q12737077
['Q5394106', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5394106 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Tomàs Cerdà
action filter_type
action find
entity Tomàs Cerdà
relation occupation
type occupation
['Tomàs Cerdà', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Tomàs_Cerdà property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q81096
SYSTEM
engineer
Q81096
(Q5394106,P106,c(Q12737077))
action filter_type
action find
entity Q5394106
relation P106
type Q12737077
The profession of Tomàs Cerdà is an [ANSWER]
['Q5394106', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5394106 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
engineer
The profession of Tomàs Cerdà is an engineer
engineer
action filter_type
action find
entity Tomàs Cerdà
relation occupation
type occupation
['Tomàs Cerdà', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Tomàs_Cerdà property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5394106
P21
Q290
USER
Which sex does Tomàs Cerdà belong to ?
(Q5394106,P21,c(Q290))
action filter_type
action find
entity Q5394106
relation P21
type Q290
['Q5394106', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q5394106 property:P21 ?z }
Tomàs Cerdà
action filter_type
action find
entity Tomàs Cerdà
relation gender
type sex
['Tomàs Cerdà', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Tomàs_Cerdà property:gender ?z }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5394106,P21,c(Q290))
action filter_type
action find
entity Q5394106
relation P21
type Q290
Tomàs Cerdà belongs to [ANSWER]
['Q5394106', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q5394106 property:P21 ?z }
male
Tomàs Cerdà belongs to male
male
action filter_type
action find
entity Tomàs Cerdà
relation gender
type sex
['Tomàs Cerdà', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Tomàs_Cerdà property:gender ?z }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?w ) WHERE { ?r rdf:type ontology:Q502895 . ?y rdf:type ontology:Q12737077 . ?y property:P417 ?r } GROUP BY ?r } } . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:P417 ?z . ?z rdf:type ontology:Q502895 . ?l rdf:type ontology:Q12737077 } GROUP BY ?z } . FILTER ( ?p = ?g ) }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?w ) WHERE { ?r rdf:type ontology:common_name . ?y rdf:type ontology:occupation . ?y property:patron_saint ?r } GROUP BY ?r } } . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:patron_saint ?z . ?z rdf:type ontology:common_name . ?l rdf:type ontology:occupation } GROUP BY ?z } . FILTER ( ?p = ?g ) }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the patron saint of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?w ) WHERE { ?r rdf:type ontology:Q502895 . ?y rdf:type ontology:Q12737077 . ?y property:P417 ?r } GROUP BY ?r } } . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:P417 ?z . ?z rdf:type ontology:Q502895 . ?l rdf:type ontology:Q12737077 } GROUP BY ?z } . FILTER ( ?p = ?g ) }
Catherine of Alexandria
Catherine of Alexandria is the patron saint of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?w ) WHERE { ?r rdf:type ontology:common_name . ?y rdf:type ontology:occupation . ?y property:patron_saint ?r } GROUP BY ?r } } . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:patron_saint ?z . ?z rdf:type ontology:common_name . ?l rdf:type ontology:occupation } GROUP BY ?z } . FILTER ( ?p = ?g ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q179718
P841
Q186081
USER
When do we have the feast day of that person ?
(Q179718,P841,c(Q186081))
action filter_type
action find
entity Q179718
relation P841
type Q186081
['Q179718', 'P841', {'concept': 'Q186081'}]
SELECT DISTINCT ?l WHERE { resource:Q179718 property:P841 ?l . ?l rdf:type ontology:Q186081 }
Catherine of Alexandria
action filter_type
action find
entity Catherine of Alexandria
relation feast day
type time interval
['Catherine of Alexandria', 'feast day', {'concept': 'time interval'}]
SELECT DISTINCT ?l WHERE { resource:Catherine_of_Alexandria property:feast_day ?l . ?l rdf:type ontology:time_interval }
[]
time interval
Q3020
SYSTEM
November 25
Q3020
(Q179718,P841,c(Q186081))
action filter_type
action find
entity Q179718
relation P841
type Q186081
We have the feast day of that person on [ANSWER]
['Q179718', 'P841', {'concept': 'Q186081'}]
SELECT DISTINCT ?l WHERE { resource:Q179718 property:P841 ?l . ?l rdf:type ontology:Q186081 }
November 25
We have the feast day of that person on November 25
November 25
action filter_type
action find
entity Catherine of Alexandria
relation feast day
type time interval
['Catherine of Alexandria', 'feast day', {'concept': 'time interval'}]
SELECT DISTINCT ?l WHERE { resource:Catherine_of_Alexandria property:feast_day ?l . ?l rdf:type ontology:time_interval }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3020
P361
Q5151
USER
What is that time interval a part of ?
(Q3020,P361,c(Q5151))
action filter_type
action find
entity Q3020
relation P361
type Q5151
['Q3020', 'P361', {'concept': 'Q5151'}]
SELECT DISTINCT ?r WHERE { resource:Q3020 property:P361 ?r . ?r rdf:type ontology:Q5151 }
November 25
action filter_type
action find
entity November 25
relation part of
type month
['November 25', 'part of', {'concept': 'month'}]
SELECT DISTINCT ?r WHERE { resource:November_25 property:part_of ?r . ?r rdf:type ontology:month }
[]
month
Q125
SYSTEM
November
Q125
(Q3020,P361,c(Q5151))
action filter_type
action find
entity Q3020
relation P361
type Q5151
That time interval a part of is a [ANSWER]
['Q3020', 'P361', {'concept': 'Q5151'}]
SELECT DISTINCT ?r WHERE { resource:Q3020 property:P361 ?r . ?r rdf:type ontology:Q5151 }
November
That time interval a part of is a November
November
action filter_type
action find
entity November 25
relation part of
type month
['November 25', 'part of', {'concept': 'month'}]
SELECT DISTINCT ?r WHERE { resource:November_25 property:part_of ?r . ?r rdf:type ontology:month }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9381 Q179718
P138
Q618779
USER
Which awards have Catherine of Alexandria or Adam Smith as their toponym ?
OR((c(Q618779),P138,Q179718), (c(Q618779),P138,Q9381))
action filter_type
action union
action find_reverse
entity Q179718
relation P138
action find_reverse
entity Q9381
relation P138
type Q618779
{'OR': [[{'concept': 'Q618779'}, 'P138', 'Q179718'], [{'concept': 'Q618779'}, 'P138', 'Q9381']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q618779 . { ?f property:P138 ?n . VALUES ( ?n ) { ( resource:Q179718 ) ( resource:Q9381 ) } } }
Adam Smith Catherine of Alexandria
action filter_type
action union
action find_reverse
entity Catherine of Alexandria
relation named after
action find_reverse
entity Adam Smith
relation named after
type award
{'OR': [[{'concept': 'award'}, 'named after', 'Catherine of Alexandria'], [{'concept': 'award'}, 'named after', 'Adam Smith']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:award . { ?f property:named_after ?n . VALUES ( ?n ) { ( resource:Catherine_of_Alexandria ) ( resource:Adam_Smith ) } } }
[]
award
Q4679816 Q1652500 Q348422 Q3782746
SYSTEM
Adam Smith Prize, Order of Saint Catherine the Great Martyr, Adam Smith Award, National Association for Business Economics
Q4679816 Q1652500 Q348422 Q3782746
OR((c(Q618779),P138,Q179718), (c(Q618779),P138,Q9381))
action filter_type
action union
action find_reverse
entity Q179718
relation P138
action find_reverse
entity Q9381
relation P138
type Q618779
[ANSWERS] have Catherine of Alexandria or Adam Smith as their toponym
{'OR': [[{'concept': 'Q618779'}, 'P138', 'Q179718'], [{'concept': 'Q618779'}, 'P138', 'Q9381']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q618779 . { ?f property:P138 ?n . VALUES ( ?n ) { ( resource:Q179718 ) ( resource:Q9381 ) } } }
Adam Smith Prize Order of Saint Catherine the Great Martyr Adam Smith Award National Association for Business Economics
Adam Smith Prize, Order of Saint Catherine the Great Martyr, Adam Smith Award and National Association for Business Economics have Catherine of Alexandria or Adam Smith as their toponym
Adam Smith Prize Order of Saint Catherine the Great Martyr Adam Smith Award National Association for Business Economics
action filter_type
action union
action find_reverse
entity Catherine of Alexandria
relation named after
action find_reverse
entity Adam Smith
relation named after
type award
{'OR': [[{'concept': 'award'}, 'named after', 'Catherine of Alexandria'], [{'concept': 'award'}, 'named after', 'Adam Smith']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:award . { ?f property:named_after ?n . VALUES ( ?n ) { ( resource:Catherine_of_Alexandria ) ( resource:Adam_Smith ) } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q27289025 Q348422
P710 P138
Q502895
USER
Which people are namesakes of Adam Smith Award or attended Arsenal v Swansea 2016-17 Premier League ?
OR((Q348422,P138,c(Q502895)), (Q27289025,P710,c(Q502895)))
action filter_type
action union
action find
entity Q348422
relation P138
action find
entity Q27289025
relation P710
type Q502895
{'OR': [['Q348422', 'P138', {'concept': 'Q502895'}], ['Q27289025', 'P710', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q348422 property:P138 ?r } UNION { resource:Q27289025 property:P710 ?r } } . ?r rdf:type ontology:Q502895 }
Arsenal v Swansea 2016-17 Premier League Adam Smith Award
action filter_type
action union
action find
entity Adam Smith Award
relation named after
action find
entity Arsenal v Swansea 2016-17 Premier League
relation participant
type common name
{'OR': [['Adam Smith Award', 'named after', {'concept': 'common name'}], ['Arsenal v Swansea 2016-17 Premier League', 'participant', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Adam_Smith_Award property:named_after ?r } UNION { resource:Arsenal_v_Swansea_2016-17_Premier_League property:participant ?r } } . ?r rdf:type ontology:common_name }
[]
common name
Q514427 Q483137 Q342219 Q14947422 Q694014 Q21091691 Q29516 Q83488 Q180553 Q9381
SYSTEM
Some of them are Granit Xhaka, Petr Čech, Nacho Monreal, Héctor Bellerín, Shkodran Mustafi, Alex Iwobi, Theo Walcott, Mesut Özil, Alexis Sánchez, Adam Smith
Q514427 Q83488 Q694014 Q180553 Q9381 Q483137 Q14947422 Q29516 Q1915 Q342219 Q21091691 Q185225
OR((Q348422,P138,c(Q502895)), (Q27289025,P710,c(Q502895)))
action filter_type
action union
action find
entity Q348422
relation P138
action find
entity Q27289025
relation P710
type Q502895
[ANSWERS] are namesakes of Adam Smith Award or attended Arsenal v Swansea 2016-17 Premier League
{'OR': [['Q348422', 'P138', {'concept': 'Q502895'}], ['Q27289025', 'P710', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q348422 property:P138 ?r } UNION { resource:Q27289025 property:P710 ?r } } . ?r rdf:type ontology:Q502895 }
Granit Xhaka Mesut Özil Shkodran Mustafi Alexis Sánchez Adam Smith Petr Čech Héctor Bellerín Theo Walcott Laurent Koscielny Nacho Monreal Alex Iwobi Santi Cazorla
Granit Xhaka, Petr Čech, Nacho Monreal, Héctor Bellerín, Shkodran Mustafi, Alex Iwobi, Theo Walcott, Mesut Özil, Alexis Sánchez and Adam Smith are namesakes of Adam Smith Award or attended Arsenal v Swansea 2016-17 Premier League
Granit Xhaka Petr Čech Nacho Monreal Héctor Bellerín Shkodran Mustafi Alex Iwobi Theo Walcott Mesut Özil Alexis Sánchez Adam Smith
action filter_type
action union
action find
entity Adam Smith Award
relation named after
action find
entity Arsenal v Swansea 2016-17 Premier League
relation participant
type common name
{'OR': [['Adam Smith Award', 'named after', {'concept': 'common name'}], ['Arsenal v Swansea 2016-17 Premier League', 'participant', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Adam_Smith_Award property:named_after ?r } UNION { resource:Arsenal_v_Swansea_2016-17_Premier_League property:participant ?r } } . ?r rdf:type ontology:common_name }
[]