Simple Question (Direct)
Simple Question
Q2480144
P106
Q12737077
USER
Which occupation is the profession of Narcisse Ekanga ?
(Q2480144,P106,c(Q12737077))
action filter_type
action find
entity Q2480144
relation P106
type Q12737077
['Q2480144', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q2480144 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Narcisse Ekanga
action filter_type
action find
entity Narcisse Ekanga
relation occupation
type occupation
['Narcisse Ekanga', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Narcisse_Ekanga property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2480144,P106,c(Q12737077))
action filter_type
action find
entity Q2480144
relation P106
type Q12737077
Player [ANSWER] is the profession of Narcisse Ekanga
['Q2480144', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q2480144 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Narcisse Ekanga
association football player
action filter_type
action find
entity Narcisse Ekanga
relation occupation
type occupation
['Narcisse Ekanga', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Narcisse_Ekanga property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2480144
P641
Q349
USER
Which sport was Narcisse Ekanga a part of ?
(Q2480144,P641,c(Q349))
action filter_type
action find
entity Q2480144
relation P641
type Q349
['Q2480144', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q2480144 property:P641 ?o . ?o rdf:type ontology:Q349 }
Narcisse Ekanga
action filter_type
action find
entity Narcisse Ekanga
relation sport
type sport
['Narcisse Ekanga', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Narcisse_Ekanga property:sport ?o . ?o rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q2480144,P641,c(Q349))
action filter_type
action find
entity Q2480144
relation P641
type Q349
Which sport was Narcisse Ekanga a part of
['Q2480144', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q2480144 property:P641 ?o . ?o rdf:type ontology:Q349 }
association football
Which sport was Narcisse Ekanga a part of
association football
action filter_type
action find
entity Narcisse Ekanga
relation sport
type sport
['Narcisse Ekanga', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Narcisse_Ekanga property:sport ?o . ?o rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6292571
Q349
USER
And what about José Jiménez?
(Q6292571,P641,c(Q349))
action filter_type
action find
entity Q6292571
relation P641
type Q349
['Q6292571', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q6292571 property:P641 ?m . ?m rdf:type ontology:Q349 }
José Jiménez
action filter_type
action find
entity José Jiménez
relation sport
type sport
['José Jiménez', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:José_Jiménez property:sport ?m . ?m rdf:type ontology:sport }
[]
sport
Q5369
SYSTEM
baseball
Q5369
(Q6292571,P641,c(Q349))
action filter_type
action find
entity Q6292571
relation P641
type Q349
[ANSWER]
['Q6292571', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q6292571 property:P641 ?m . ?m rdf:type ontology:Q349 }
baseball
baseball
action filter_type
action find
entity José Jiménez
relation sport
type sport
['José Jiménez', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:José_Jiménez property:sport ?m . ?m rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P425
Q349 Q151885
USER
How many sports have around the same number of concepts as the associated fields of occupation as that sport ?
(c(Q151885),P425,c(Q349))
action count
action approx
action find_reverse_tuple_counts
relation P425
type Q349
type Q151885
action count
action filter_type
action find
entity Q5369
relation P425
type Q349
[{'concept': 'Q151885'}, 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:P425 ?v . ?v rdf:type ontology:Q349 . ?x rdf:type ontology:Q151885 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:Q5369 property:P425 ?a . ?a rdf:type ontology:Q349 } } . FILTER ( ?d = ?b ) }
action count
action approx
action find_reverse_tuple_counts
relation field of this occupation
type sport
type concept
action count
action filter_type
action find
entity baseball
relation field of this occupation
type sport
[{'concept': 'concept'}, 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:field_of_this_occupation ?v . ?v rdf:type ontology:sport . ?x rdf:type ontology:concept } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:baseball property:field_of_this_occupation ?a . ?a rdf:type ontology:sport } } . FILTER ( ?d = ?b ) }
[]
sport concept
SYSTEM
17
Q31920 Q5369 Q183018 Q500050 Q102843 Q809831 Q133201 Q1295867 Q7076154 Q83462 Q328716 Q204686 Q12100 Q124100 Q105674 Q215862 Q204632
(c(Q151885),P425,c(Q349))
action count
action approx
action find_reverse_tuple_counts
relation P425
type Q349
type Q151885
action count
action filter_type
action find
entity Q5369
relation P425
type Q349
[ANSWER]
[{'concept': 'Q151885'}, 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:P425 ?v . ?v rdf:type ontology:Q349 . ?x rdf:type ontology:Q151885 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:Q5369 property:P425 ?a . ?a rdf:type ontology:Q349 } } . FILTER ( ?d = ?b ) }
swimming baseball bandy cross country running tug of war BASE jumping squash pesäpallo ocean rowing weightlifting motorcycle sport winter sport fencing bodybuilding running motocross Gaelic football
17
action count
action approx
action find_reverse_tuple_counts
relation field of this occupation
type sport
type concept
action count
action filter_type
action find
entity baseball
relation field of this occupation
type sport
[{'concept': 'concept'}, 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:field_of_this_occupation ?v . ?v rdf:type ontology:sport . ?x rdf:type ontology:concept } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:baseball property:field_of_this_occupation ?a . ?a rdf:type ontology:sport } } . FILTER ( ?d = ?b ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saints 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 ?p WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?v ) WHERE { ?s rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12737077 . ?a property:P417 ?s } GROUP BY ?s } } . { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?k ) WHERE { ?m property:P417 ?p . ?p rdf:type ontology:Q502895 . ?m rdf:type ontology:Q12737077 } GROUP BY ?p } . FILTER ( ?k = ?q ) }
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 ?p WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?v ) WHERE { ?s rdf:type ontology:common_name . ?a rdf:type ontology:occupation . ?a property:patron_saint ?s } GROUP BY ?s } } . { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?k ) WHERE { ?m property:patron_saint ?p . ?p rdf:type ontology:common_name . ?m rdf:type ontology:occupation } GROUP BY ?p } . FILTER ( ?k = ?q ) }
[]
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 saints of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?v ) WHERE { ?s rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12737077 . ?a property:P417 ?s } GROUP BY ?s } } . { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?k ) WHERE { ?m property:P417 ?p . ?p rdf:type ontology:Q502895 . ?m rdf:type ontology:Q12737077 } GROUP BY ?p } . FILTER ( ?k = ?q ) }
Catherine of Alexandria
Catherine of Alexandria is the patron saints 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 ?p WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?v ) WHERE { ?s rdf:type ontology:common_name . ?a rdf:type ontology:occupation . ?a property:patron_saint ?s } GROUP BY ?s } } . { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?k ) WHERE { ?m property:patron_saint ?p . ?p rdf:type ontology:common_name . ?m rdf:type ontology:occupation } GROUP BY ?p } . FILTER ( ?k = ?q ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1471547 Q937857
P425 P641
Q349
USER
Which sports have association football player as the associated fields of occupation or did Kaushalya Dissanayake participate in ?
OR((Q937857,P425,c(Q349)), (Q1471547,P641,c(Q349)))
action filter_type
action union
action find
entity Q937857
relation P425
action find
entity Q1471547
relation P641
type Q349
{'OR': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q1471547', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q937857 property:P425 ?f } UNION { resource:Q1471547 property:P641 ?f } } . ?f rdf:type ontology:Q349 }
Kaushalya Dissanayake association football player
action filter_type
action union
action find
entity association football player
relation field of this occupation
action find
entity Kaushalya Dissanayake
relation sport
type sport
{'OR': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Kaushalya Dissanayake', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?f WHERE { { { resource:association_football_player property:field_of_this_occupation ?f } UNION { resource:Kaushalya_Dissanayake property:sport ?f } } . ?f rdf:type ontology:sport }
[]
sport
Q7291 Q2736
SYSTEM
badminton, association football
Q7291 Q2736
OR((Q937857,P425,c(Q349)), (Q1471547,P641,c(Q349)))
action filter_type
action union
action find
entity Q937857
relation P425
action find
entity Q1471547
relation P641
type Q349
[ANSWERS] have association football player as the associated fields of occupation or did Kaushalya Dissanayake participate in
{'OR': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q1471547', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q937857 property:P425 ?f } UNION { resource:Q1471547 property:P641 ?f } } . ?f rdf:type ontology:Q349 }
badminton association football
Badminton and association football have association football player as the associated fields of occupation or did Kaushalya Dissanayake participate in
badminton association football
action filter_type
action union
action find
entity association football player
relation field of this occupation
action find
entity Kaushalya Dissanayake
relation sport
type sport
{'OR': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Kaushalya Dissanayake', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?f WHERE { { { resource:association_football_player property:field_of_this_occupation ?f } UNION { resource:Kaushalya_Dissanayake property:sport ?f } } . ?f rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q7291 Q2736
P425
Q12737077
USER
Which occupations do those sports belong to ?
(c(Q12737077),P425,Q7291) (c(Q12737077),P425,Q2736)
action filter_type
action find_reverse
entity prev_answer
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q7291'] [{'concept': 'Q12737077'}, 'P425', 'Q2736']
SELECT DISTINCT ?l WHERE { ?l property:P425 ?u . ?l rdf:type ontology:Q12737077 . VALUES ( ?u ) { ( resource:Q7291 ) ( resource:Q2736 ) } }
badminton association football
action filter_type
action find_reverse
entity prev_answer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'badminton'] [{'concept': 'occupation'}, 'field of this occupation', 'association football']
SELECT DISTINCT ?l WHERE { ?l property:field_of_this_occupation ?u . ?l rdf:type ontology:occupation . VALUES ( ?u ) { ( resource:badminton ) ( resource:association_football ) } }
[]
occupation
Q937857 Q628099 Q13141064
SYSTEM
association football player, association football manager, badminton player
Q13141064 Q937857 Q628099 Q18052877
(c(Q12737077),P425,Q7291) (c(Q12737077),P425,Q2736)
action filter_type
action find_reverse
entity prev_answer
relation P425
type Q12737077
Those sports belong to [ANSWERS]
[{'concept': 'Q12737077'}, 'P425', 'Q7291'] [{'concept': 'Q12737077'}, 'P425', 'Q2736']
SELECT DISTINCT ?l WHERE { ?l property:P425 ?u . ?l rdf:type ontology:Q12737077 . VALUES ( ?u ) { ( resource:Q7291 ) ( resource:Q2736 ) } }
badminton player association football player association football manager assistant coach
Those sports belong to association football player, association football manager and badminton player
association football player association football manager badminton player
action filter_type
action find_reverse
entity prev_answer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'badminton'] [{'concept': 'occupation'}, 'field of this occupation', 'association football']
SELECT DISTINCT ?l WHERE { ?l property:field_of_this_occupation ?u . ?l rdf:type ontology:occupation . VALUES ( ?u ) { ( resource:badminton ) ( resource:association_football ) } }
[]