Simple Question (Direct)
Simple Question
Q2829611
P69
Q3914
USER
What is the school where Alain Bournazel was educated ?
(Q2829611,P69,c(Q3914))
action filter_type
action find
entity Q2829611
relation P69
type Q3914
['Q2829611', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?m WHERE { resource:Q2829611 property:P69 ?m . ?m rdf:type ontology:Q3914 }
Alain Bournazel
action filter_type
action find
entity Alain Bournazel
relation educated at
type school
['Alain Bournazel', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?m WHERE { resource:Alain_Bournazel property:educated_at ?m . ?m rdf:type ontology:school }
[]
school
Q273579
SYSTEM
École nationale d'administration
Q273579
(Q2829611,P69,c(Q3914))
action filter_type
action find
entity Q2829611
relation P69
type Q3914
The school Alain Bournazel was educated is the [ANSWER]
['Q2829611', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?m WHERE { resource:Q2829611 property:P69 ?m . ?m rdf:type ontology:Q3914 }
École nationale d'administration
The school Alain Bournazel was educated is the École nationale d'administration
École nationale d'administration
action filter_type
action find
entity Alain Bournazel
relation educated at
type school
['Alain Bournazel', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?m WHERE { resource:Alain_Bournazel property:educated_at ?m . ?m rdf:type ontology:school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2829611
P106
Q12737077
USER
Which occupation has Alain Bournazel as his/her 's career ?
(Q2829611,P106,c(Q12737077))
action filter_type
action find
entity Q2829611
relation P106
type Q12737077
['Q2829611', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2829611 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Alain Bournazel
action filter_type
action find
entity Alain Bournazel
relation occupation
type occupation
['Alain Bournazel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Alain_Bournazel property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q23938096
SYSTEM
host of an on-air show on Radio Courtoisie
Q23938096
(Q2829611,P106,c(Q12737077))
action filter_type
action find
entity Q2829611
relation P106
type Q12737077
The [ANSWER] has Alain Bournazel as his/her 's career
['Q2829611', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2829611 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
host of an on-air show on Radio Courtoisie
The host of an on-air show on Radio Courtoisie has Alain Bournazel as his/her 's career
host of an on-air show on Radio Courtoisie
action filter_type
action find
entity Alain Bournazel
relation occupation
type occupation
['Alain Bournazel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Alain_Bournazel property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6454531
Q12737077
USER
And how about José Luis Marcos Merino?
(Q6454531,P106,c(Q12737077))
action filter_type
action find
entity Q6454531
relation P106
type Q12737077
['Q6454531', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q6454531 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
José Luis Marcos Merino
action filter_type
action find
entity José Luis Marcos Merino
relation occupation
type occupation
['José Luis Marcos Merino', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:José_Luis_Marcos_Merino property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q6454531,P106,c(Q12737077))
action filter_type
action find
entity Q6454531
relation P106
type Q12737077
[ANSWER]
['Q6454531', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q6454531 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
politician
politician
action filter_type
action find
entity José Luis Marcos Merino
relation occupation
type occupation
['José Luis Marcos Merino', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:José_Luis_Marcos_Merino property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q82955 Q10322991
P106
Q502895
USER
Does Mafalda Van Zeller have a job as that occupation ?
(Q10322991,P106,Q82955)
action is_in
entity Q10322991
action find
entity Q82955
relation P106
['Q10322991', 'P106', 'Q82955']
ASK WHERE { resource:Q82955 property:P106 resource:Q10322991 }
politician Mafalda Van Zeller
action is_in
entity Mafalda Van Zeller
action find
entity politician
relation occupation
['Mafalda Van Zeller', 'occupation', 'politician']
ASK WHERE { resource:politician property:occupation resource:Mafalda_Van_Zeller }
[]
common name
SYSTEM
NO
(Q10322991,P106,Q82955)
action is_in
entity Q10322991
action find
entity Q82955
relation P106
[ANSWER]
['Q10322991', 'P106', 'Q82955']
ASK WHERE { resource:Q82955 property:P106 resource:Q10322991 }
No
action is_in
entity Mafalda Van Zeller
action find
entity politician
relation occupation
['Mafalda Van Zeller', 'occupation', 'politician']
ASK WHERE { resource:politician property:occupation resource:Mafalda_Van_Zeller }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q852857
P180
Q12737077 Q2342494 Q11060274
USER
Which occupations are depicted in greater number of collectables or prints than sex worker ?
(c(Q2342494)|c(Q11060274),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q852857
relation P180
type Q2342494
type Q11060274
[[{'concept': 'Q2342494'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { { ?h rdf:type ontology:Q2342494 } UNION { ?h rdf:type ontology:Q11060274 } } . ?h property:P180 resource:Q852857 } } . FILTER ( ?s > ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?s ) WHERE { ?b rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q11060274 ) } } GROUP BY ?q } }
sex worker
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action count
action filter_multi_types
action find_reverse
entity sex worker
relation depicts
type collectable
type print
[[{'concept': 'collectable'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { { ?h rdf:type ontology:collectable } UNION { ?h rdf:type ontology:print } } . ?h property:depicts resource:sex_worker } } . FILTER ( ?s > ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?s ) WHERE { ?b rdf:type ?u . VALUES ( ?u ) { ( ontology:collectable ) ( ontology:print ) } } GROUP BY ?q } }
[]
occupation collectable print
Q131512 Q170779 Q838811
SYSTEM
farmer, Kassandra, peasant
Q2486919 Q131512 Q11900058 Q483501 Q843281 Q376924 Q848466 Q20489032 Q1509714 Q11063 Q170779 Q838811 Q2251335 Q639669
(c(Q2342494)|c(Q11060274),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q852857
relation P180
type Q2342494
type Q11060274
[ANSWERS] are depicted in greater number of collectables or prints than sex worker
[[{'concept': 'Q2342494'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { { ?h rdf:type ontology:Q2342494 } UNION { ?h rdf:type ontology:Q11060274 } } . ?h property:P180 resource:Q852857 } } . FILTER ( ?s > ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?s ) WHERE { ?b rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q11060274 ) } } GROUP BY ?q } }
standard-bearer farmer explorer artist hobo courtesan courier salt pan worker porter astronomer Kassandra peasant school teacher musician
Farmer, Kassandra and peasant are depicted in greater number of collectables or prints than sex worker
farmer Kassandra peasant
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action count
action filter_multi_types
action find_reverse
entity sex worker
relation depicts
type collectable
type print
[[{'concept': 'collectable'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { { ?h rdf:type ontology:collectable } UNION { ?h rdf:type ontology:print } } . ?h property:depicts resource:sex_worker } } . FILTER ( ?s > ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?s ) WHERE { ?b rdf:type ?u . VALUES ( ?u ) { ( ontology:collectable ) ( ontology:print ) } } GROUP BY ?q } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q10833314
P180
Q12737077 Q2342494 Q11060274
USER
And what about tennis player?
(c(Q2342494)|c(Q11060274),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q10833314
relation P180
type Q2342494
type Q11060274
[[{'concept': 'Q2342494'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?n ) { ( ontology:Q2342494 ) ( ontology:Q11060274 ) } . ?e rdf:type ?n } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:P180 resource:Q10833314 . { { ?k rdf:type ontology:Q11060274 } UNION { ?k rdf:type ontology:Q2342494 } } } } . FILTER ( ?t > ?y ) }
tennis player
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action count
action filter_multi_types
action find_reverse
entity tennis player
relation depicts
type collectable
type print
[[{'concept': 'collectable'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?n ) { ( ontology:collectable ) ( ontology:print ) } . ?e rdf:type ?n } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:depicts resource:tennis_player . { { ?k rdf:type ontology:print } UNION { ?k rdf:type ontology:collectable } } } } . FILTER ( ?t > ?y ) }
[]
occupation collectable print
Q131512 Q170779 Q838811
SYSTEM
farmer, Kassandra, peasant
Q2486919 Q131512 Q11900058 Q483501 Q843281 Q376924 Q848466 Q20489032 Q1509714 Q11063 Q170779 Q838811 Q2251335 Q639669
(c(Q2342494)|c(Q11060274),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q10833314
relation P180
type Q2342494
type Q11060274
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?n ) { ( ontology:Q2342494 ) ( ontology:Q11060274 ) } . ?e rdf:type ?n } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:P180 resource:Q10833314 . { { ?k rdf:type ontology:Q11060274 } UNION { ?k rdf:type ontology:Q2342494 } } } } . FILTER ( ?t > ?y ) }
standard-bearer farmer explorer artist hobo courtesan courier salt pan worker porter astronomer Kassandra peasant school teacher musician
farmer Kassandra peasant
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action count
action filter_multi_types
action find_reverse
entity tennis player
relation depicts
type collectable
type print
[[{'concept': 'collectable'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?n ) { ( ontology:collectable ) ( ontology:print ) } . ?e rdf:type ?n } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:depicts resource:tennis_player . { { ?k rdf:type ontology:print } UNION { ?k rdf:type ontology:collectable } } } } . FILTER ( ?t > ?y ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q838811
P921
Q8171
USER
Which word has that occupation as its principal topic ?
(c(Q8171),P921,Q838811)
action filter_type
action find_reverse
entity Q838811
relation P921
type Q8171
[{'concept': 'Q8171'}, 'P921', 'Q838811']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q8171 . ?m property:P921 resource:Q838811 }
peasant
action filter_type
action find_reverse
entity peasant
relation main subject
type word
[{'concept': 'word'}, 'main subject', 'peasant']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:word . ?m property:main_subject resource:peasant }
[]
word
Clarification for simple ques.
Q131512
SYSTEM
Did you mean farmer ?
Q131512 Q170779 Q838811
(c(Q8171),P921,Q131512) (c(Q8171),P921,Q170779) (c(Q8171),P921,Q838811)
[ANSWER]
[{'concept': 'Q8171'}, 'P921', 'Q131512'] [{'concept': 'Q8171'}, 'P921', 'Q170779'] [{'concept': 'Q8171'}, 'P921', 'Q838811']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q8171 . ?m property:P921 resource:Q838811 }
farmer Kassandra peasant
Did you mean farmer ?
farmer
[{'concept': 'word'}, 'main subject', 'farmer'] [{'concept': 'word'}, 'main subject', 'Kassandra'] [{'concept': 'word'}, 'main subject', 'peasant']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:word . ?m property:main_subject resource:peasant }
[]
Simple Question (Coreferenced)
USER
No, I meant peasant. Could you tell me the answer for that?
(c(Q8171),P921,Q838811)
Q838811
[{'concept': 'Q8171'}, 'P921', 'Q838811']
[{'concept': 'word'}, 'main subject', 'peasant']
[]
Q3392571
SYSTEM
Plouc
Q3392571
(c(Q8171),P921,Q838811)
action filter_type
action find_reverse
entity Q838811
relation P921
type Q8171
[ANSWER] has that occupation as its principal topic
[{'concept': 'Q8171'}, 'P921', 'Q838811']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q8171 . ?m property:P921 resource:Q838811 }
Plouc
Plouc has that occupation as its principal topic
Plouc
action filter_type
action find_reverse
entity peasant
relation main subject
type word
[{'concept': 'word'}, 'main subject', 'peasant']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:word . ?m property:main_subject resource:peasant }
[]