Simple Question (Direct)
Simple Question
Q2881849
P734
Q82799
USER
Who is associated with Rokus de Groot ?
(Q2881849,P734,c(Q82799))
action filter_type
action find
entity Q2881849
relation P734
type Q82799
['Q2881849', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q2881849 property:P734 ?m . ?m rdf:type ontology:Q82799 }
Rokus de Groot
action filter_type
action find
entity Rokus de Groot
relation family name
type name
['Rokus de Groot', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Rokus_de_Groot property:family_name ?m . ?m rdf:type ontology:name }
[]
name
Q1547388
SYSTEM
De Groot
Q1547388
(Q2881849,P734,c(Q82799))
action filter_type
action find
entity Q2881849
relation P734
type Q82799
[ANSWER] is associated with Rokus de Groot
['Q2881849', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q2881849 property:P734 ?m . ?m rdf:type ontology:Q82799 }
De Groot
De Groot is associated with Rokus de Groot
De Groot
action filter_type
action find
entity Rokus de Groot
relation family name
type name
['Rokus de Groot', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Rokus_de_Groot property:family_name ?m . ?m rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2881849
P106
Q12737077
USER
What are the professions of Rokus de Groot ?
(Q2881849,P106,c(Q12737077))
action filter_type
action find
entity Q2881849
relation P106
type Q12737077
['Q2881849', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q2881849 property:P106 ?k }
Rokus de Groot
action filter_type
action find
entity Rokus de Groot
relation occupation
type occupation
['Rokus de Groot', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Rokus_de_Groot property:occupation ?k }
[]
occupation
Q14915627 Q36834 Q1622272
SYSTEM
musicologist, composer, university teacher
Q14915627 Q36834 Q1622272
(Q2881849,P106,c(Q12737077))
action filter_type
action find
entity Q2881849
relation P106
type Q12737077
The professions of Rokus de Groot are [ANSWERS]
['Q2881849', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q2881849 property:P106 ?k }
musicologist composer university teacher
The professions of Rokus de Groot are musicologist, composer and university teacher
musicologist composer university teacher
action filter_type
action find
entity Rokus de Groot
relation occupation
type occupation
['Rokus de Groot', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Rokus_de_Groot property:occupation ?k }
[]
Clarification
Simple Question|Single Entity|Indirect
Q36834
P417
Q502895
USER
What is the name of person who is the patron saint of that occupation ?
(Q36834,P417,c(Q502895))
action filter_type
action find
entity Q36834
relation P417
type Q502895
['Q36834', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q36834 property:P417 ?r . ?r rdf:type ontology:Q502895 }
composer
action filter_type
action find
entity composer
relation patron saint
type common name
['composer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:composer property:patron_saint ?r . ?r rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q14915627
SYSTEM
Did you mean musicologist ?
Q14915627 Q36834 Q1622272
(Q14915627,P417,c(Q502895)) (Q36834,P417,c(Q502895)) (Q1622272,P417,c(Q502895))
[ANSWER]
['Q14915627', 'P417', {'concept': 'Q502895'}] ['Q36834', 'P417', {'concept': 'Q502895'}] ['Q1622272', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q36834 property:P417 ?r . ?r rdf:type ontology:Q502895 }
musicologist composer university teacher
Did you mean musicologist ?
musicologist
['musicologist', 'patron saint', {'concept': 'common name'}] ['composer', 'patron saint', {'concept': 'common name'}] ['university teacher', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:composer property:patron_saint ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant composer. Could you tell me the answer for that?
(Q36834,P417,c(Q502895))
Q36834
['Q36834', 'P417', {'concept': 'Q502895'}]
['composer', 'patron saint', {'concept': 'common name'}]
[]
Q80513
SYSTEM
Saint Cecilia
Q80513
(Q36834,P417,c(Q502895))
action filter_type
action find
entity Q36834
relation P417
type Q502895
The name of person is the patron saint of that occupation is [ANSWER]
['Q36834', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q36834 property:P417 ?r . ?r rdf:type ontology:Q502895 }
Saint Cecilia
The name of person is the patron saint of that occupation is Saint Cecilia
Saint Cecilia
action filter_type
action find
entity composer
relation patron saint
type common name
['composer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:composer property:patron_saint ?r . ?r rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P825
Q502895 Q7725634 Q811979
USER
How many people are more number of literary works or architectural structures dedicated to than that person ?
(c(Q7725634)|c(Q811979),P825,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q80513
relation P825
type Q7725634
type Q811979
[[{'concept': 'Q7725634'}, {'concept': 'Q811979'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?k WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q7725634 ) ( ontology:Q811979 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:P825 resource:Q80513 . { VALUES ( ?o ) { ( ontology:Q811979 ) ( ontology:Q7725634 ) } . ?u rdf:type ?o } } } . FILTER ( ?x > ?b ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Saint Cecilia
relation dedicated to
type literary work
type architectural structure
[[{'concept': 'literary work'}, {'concept': 'architectural structure'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?k WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:literary_work ) ( ontology:architectural_structure ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:dedicated_to resource:Saint_Cecilia . { VALUES ( ?o ) { ( ontology:architectural_structure ) ( ontology:literary_work ) } . ?u rdf:type ?o } } } . FILTER ( ?x > ?b ) }
[]
common name literary work architectural structure
SYSTEM
22
Q534049 Q392 Q183126 Q448890 Q935 Q2959955 Q120180 Q460876 Q8023 Q170726 Q2594000 Q454840 Q313196 Q20757530 Q2853967 Q2360522 Q354519 Q457433 Q163366 Q503886 Q374467 Q123062
(c(Q7725634)|c(Q811979),P825,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q80513
relation P825
type Q7725634
type Q811979
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q811979'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?k WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q7725634 ) ( ontology:Q811979 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:P825 resource:Q80513 . { VALUES ( ?o ) { ( ontology:Q811979 ) ( ontology:Q7725634 ) } . ?u rdf:type ?o } } } . FILTER ( ?x > ?b ) }
Saint Petroc Bob Dylan Ramakrishna Charlotte Saunders Cushman Isaac Newton Charles Panzéra Alexander III of Russia Lenny Bruce Nelson Mandela Enrico Caruso Diego Brosset William Cullen Bryant Louis Desaix Madame Autard de Bragard Antoine Gailleton Anna Petrovna Kern Charley Patton Sara Dylan Ezra Pound Sterling Morrison Gabriel of Our Lady of Sorrows Jacques Necker
22
action count
action greater
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Saint Cecilia
relation dedicated to
type literary work
type architectural structure
[[{'concept': 'literary work'}, {'concept': 'architectural structure'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?k WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:literary_work ) ( ontology:architectural_structure ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:dedicated_to resource:Saint_Cecilia . { VALUES ( ?o ) { ( ontology:architectural_structure ) ( ontology:literary_work ) } . ?u rdf:type ?o } } } . FILTER ( ?x > ?b ) }
[]