Simple Question (Direct)
Simple Question
Q3304499
P641
Q349
USER
Which sport did Mehdi Harb participate in ?
(Q3304499,P641,c(Q349))
action filter_type
action find
entity Q3304499
relation P641
type Q349
['Q3304499', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q349 . resource:Q3304499 property:P641 ?z }
Mehdi Harb
action filter_type
action find
entity Mehdi Harb
relation sport
type sport
['Mehdi Harb', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sport . resource:Mehdi_Harb property:sport ?z }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3304499,P641,c(Q349))
action filter_type
action find
entity Q3304499
relation P641
type Q349
Mehdi Harb participated in [ANSWER]
['Q3304499', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q349 . resource:Q3304499 property:P641 ?z }
association football
Mehdi Harb participated in association football
association football
action filter_type
action find
entity Mehdi Harb
relation sport
type sport
['Mehdi Harb', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sport . resource:Mehdi_Harb property:sport ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3304499
P106
Q12737077
USER
Which occupation is the profession of Mehdi Harb ?
(Q3304499,P106,c(Q12737077))
action filter_type
action find
entity Q3304499
relation P106
type Q12737077
['Q3304499', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q3304499 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Mehdi Harb
action filter_type
action find
entity Mehdi Harb
relation occupation
type occupation
['Mehdi Harb', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Mehdi_Harb property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q3304499,P106,c(Q12737077))
action filter_type
action find
entity Q3304499
relation P106
type Q12737077
Player [ANSWER] is the profession of Mehdi Harb
['Q3304499', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q3304499 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Mehdi Harb
association football player
action filter_type
action find
entity Mehdi Harb
relation occupation
type occupation
['Mehdi Harb', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Mehdi_Harb property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3304499
P21
Q290
USER
Which sex does that person have ?
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q3304499
relation P21
type Q290
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q3304499 property:P21 ?z . ?z rdf:type ontology:Q290 }
Mehdi Harb
action filter_type
action find
entity Mehdi Harb
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Mehdi_Harb property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q3304499
relation P21
type Q290
That person has a [ANSWER]
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q3304499 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Mehdi Harb
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Mehdi_Harb property:gender ?z . ?z rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q355884
P417
Q502895 Q12737077
USER
How many people are the names of person who are the patron saints of greater number of occupations than Josaphat Kuntsevych ?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q355884
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?q ) WHERE { ?w property:P417 ?s . ?w rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q502895 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { ?a rdf:type ontology:Q502895 . resource:Q355884 property:P417 ?a } } . FILTER ( ?q > ?z ) }
Josaphat Kuntsevych
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Josaphat Kuntsevych
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?q ) WHERE { ?w property:patron_saint ?s . ?w rdf:type ontology:occupation . ?s rdf:type ontology:common_name } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { ?a rdf:type ontology:common_name . resource:Josaphat_Kuntsevych property:patron_saint ?a } } . FILTER ( ?q > ?z ) }
[]
common name occupation
SYSTEM
54
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 count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q355884
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?q ) WHERE { ?w property:P417 ?s . ?w rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q502895 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { ?a rdf:type ontology:Q502895 . resource:Q355884 property:P417 ?a } } . FILTER ( ?q > ?z ) }
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
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Josaphat Kuntsevych
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?q ) WHERE { ?w property:patron_saint ?s . ?w rdf:type ontology:occupation . ?s rdf:type ontology:common_name } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { ?a rdf:type ontology:common_name . resource:Josaphat_Kuntsevych property:patron_saint ?a } } . FILTER ( ?q > ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q3949261
P417
Q502895 Q12737077
USER
And how about Saint Venera?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q3949261
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?i ) WHERE { ?u rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12737077 . ?g property:P417 ?u } GROUP BY ?u } . FILTER ( ?i > ?h ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Q3949261 property:P417 ?t . ?t rdf:type ontology:Q502895 } } }
Saint Venera
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Venera
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?i ) WHERE { ?u rdf:type ontology:common_name . ?g rdf:type ontology:occupation . ?g property:patron_saint ?u } GROUP BY ?u } . FILTER ( ?i > ?h ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Saint_Venera property:patron_saint ?t . ?t rdf:type ontology:common_name } } }
[]
common name occupation
SYSTEM
54
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 count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q3949261
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?i ) WHERE { ?u rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12737077 . ?g property:P417 ?u } GROUP BY ?u } . FILTER ( ?i > ?h ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Q3949261 property:P417 ?t . ?t 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
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Venera
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?i ) WHERE { ?u rdf:type ontology:common_name . ?g rdf:type ontology:occupation . ?g property:patron_saint ?u } GROUP BY ?u } . FILTER ( ?i > ?h ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Saint_Venera property:patron_saint ?t . ?t rdf:type ontology:common_name } } }
[]