Simple Question (Direct)
Simple Question
Q5285721
P106
Q12737077
USER
What does Dmitry Ivchenko do for a living ?
(Q5285721,P106,c(Q12737077))
action filter_type
action find
entity Q5285721
relation P106
type Q12737077
['Q5285721', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5285721 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Dmitry Ivchenko
action filter_type
action find
entity Dmitry Ivchenko
relation occupation
type occupation
['Dmitry Ivchenko', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Dmitry_Ivchenko property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5285721,P106,c(Q12737077))
action filter_type
action find
entity Q5285721
relation P106
type Q12737077
Dmitry Ivchenko does for a living as [ANSWER]
['Q5285721', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5285721 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
association football player
Dmitry Ivchenko does for a living as association football player
association football player
action filter_type
action find
entity Dmitry Ivchenko
relation occupation
type occupation
['Dmitry Ivchenko', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Dmitry_Ivchenko property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5285721
P641
Q349
USER
Which sport did Dmitry Ivchenko participate in ?
(Q5285721,P641,c(Q349))
action filter_type
action find
entity Q5285721
relation P641
type Q349
['Q5285721', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q349 . resource:Q5285721 property:P641 ?n }
Dmitry Ivchenko
action filter_type
action find
entity Dmitry Ivchenko
relation sport
type sport
['Dmitry Ivchenko', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sport . resource:Dmitry_Ivchenko property:sport ?n }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5285721,P641,c(Q349))
action filter_type
action find
entity Q5285721
relation P641
type Q349
Dmitry Ivchenko participated in [ANSWER]
['Q5285721', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q349 . resource:Q5285721 property:P641 ?n }
association football
Dmitry Ivchenko participated in association football
association football
action filter_type
action find
entity Dmitry Ivchenko
relation sport
type sport
['Dmitry Ivchenko', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sport . resource:Dmitry_Ivchenko property:sport ?n }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q235863
P417
Q502895 Q12737077 Q56061
USER
How many people are the names of the patron saint of greater number of occupations or administrative territories than Genevieve ?
(c(Q12737077)|c(Q56061),P417,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q235863
relation P417
type Q12737077
type Q56061
[[{'concept': 'Q12737077'}, {'concept': 'Q56061'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) ?h WHERE { VALUES ( ?z ) { ( ontology:Q12737077 ) ( ontology:Q56061 ) } . ?r rdf:type ?z } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:P417 resource:Q235863 . { VALUES ( ?e ) { ( ontology:Q12737077 ) ( ontology:Q56061 ) } . ?i rdf:type ?e } } } . FILTER ( ?l > ?q ) }
Genevieve
action count
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Genevieve
relation patron saint
type occupation
type administrative territorial entity
[[{'concept': 'occupation'}, {'concept': 'administrative territorial entity'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) ?h WHERE { VALUES ( ?z ) { ( ontology:occupation ) ( ontology:administrative_territorial_entity ) } . ?r rdf:type ?z } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:patron_saint resource:Genevieve . { VALUES ( ?e ) { ( ontology:occupation ) ( ontology:administrative_territorial_entity ) } . ?i rdf:type ?e } } } . FILTER ( ?l > ?q ) }
[]
common name occupation administrative territorial entity
SYSTEM
35
Q133704 Q229190 Q152457 Q43689 Q328804 Q166876 Q170547 Q44024 Q42887 Q33923 Q128538 Q183240 Q298845 Q167477 Q288295 Q297742 Q48438 Q43399 Q189776 Q196653 Q9200 Q44269 Q44265 Q192816 Q43982 Q179718 Q40662 Q43600 Q744884 Q151967 Q11905449 Q17590 Q200895 Q44248 Q310633
(c(Q12737077)|c(Q56061),P417,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q235863
relation P417
type Q12737077
type Q56061
[ANSWER]
[[{'concept': 'Q12737077'}, {'concept': 'Q56061'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) ?h WHERE { VALUES ( ?z ) { ( ontology:Q12737077 ) ( ontology:Q56061 ) } . ?r rdf:type ?z } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:P417 resource:Q235863 . { VALUES ( ?e ) { ( ontology:Q12737077 ) ( ontology:Q56061 ) } . ?i rdf:type ?e } } } . FILTER ( ?l > ?q ) }
Martin of Tours Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Anthony the Great Athanasius of Alexandria Clement I Peter Luke the Evangelist Saint Lucy Saint Florian Anthony of Padua Justina of Padua Margaret the Virgin Saint George Andrew Zeno of Verona Saint Veronica Paul Saint Nicholas Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Matthew the Apostle Zita Saint Blaise Anastasi de Lleida Lawrence of Rome Agatha of Sicily Jerome Demetrius of Thessaloniki
35
action count
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Genevieve
relation patron saint
type occupation
type administrative territorial entity
[[{'concept': 'occupation'}, {'concept': 'administrative territorial entity'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) ?h WHERE { VALUES ( ?z ) { ( ontology:occupation ) ( ontology:administrative_territorial_entity ) } . ?r rdf:type ?z } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:patron_saint resource:Genevieve . { VALUES ( ?e ) { ( ontology:occupation ) ( ontology:administrative_territorial_entity ) } . ?i rdf:type ?e } } } . FILTER ( ?l > ?q ) }
[]