Simple Question (Direct)
Simple Question
Q381772
P106
Q12737077
USER
What are the professions of Nathan Isgur ?
(Q381772,P106,c(Q12737077))
action filter_type
action find
entity Q381772
relation P106
type Q12737077
['Q381772', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q381772 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Nathan Isgur
action filter_type
action find
entity Nathan Isgur
relation occupation
type occupation
['Nathan Isgur', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Nathan_Isgur property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q169470 Q1622272
SYSTEM
physicist, university teacher
Q169470 Q1622272
(Q381772,P106,c(Q12737077))
action filter_type
action find
entity Q381772
relation P106
type Q12737077
The professions of Nathan Isgur are a [ANSWERS]
['Q381772', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q381772 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
physicist university teacher
The professions of Nathan Isgur are a physicist and university teacher
physicist university teacher
action filter_type
action find
entity Nathan Isgur
relation occupation
type occupation
['Nathan Isgur', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Nathan_Isgur property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q169470 Q1622272
P101
Q502895
USER
Who works in the domain of those occupations ?
(c(Q502895),P101,Q169470) (c(Q502895),P101,Q1622272)
action filter_type
action find_reverse
entity prev_answer
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q169470'] [{'concept': 'Q502895'}, 'P101', 'Q1622272']
SELECT DISTINCT ?j WHERE { ?j property:P101 ?t . ?j rdf:type ontology:Q502895 . VALUES ( ?t ) { ( resource:Q169470 ) ( resource:Q1622272 ) } }
physicist university teacher
action filter_type
action find_reverse
entity prev_answer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'physicist'] [{'concept': 'common name'}, 'field of work', 'university teacher']
SELECT DISTINCT ?j WHERE { ?j property:field_of_work ?t . ?j rdf:type ontology:common_name . VALUES ( ?t ) { ( resource:physicist ) ( resource:university_teacher ) } }
[]
common name
Q21030230 Q505197 Q1612625
SYSTEM
Eliška Klimková-Deutschová, Henry Augustus Rowland, Hermann Schmidt
Q505197 Q1530613 Q4682592 Q7025641 Q1612625 Q21030230
(c(Q502895),P101,Q169470) (c(Q502895),P101,Q1622272)
action filter_type
action find_reverse
entity prev_answer
relation P101
type Q502895
[ANSWERS] work in the domain of those occupations
[{'concept': 'Q502895'}, 'P101', 'Q169470'] [{'concept': 'Q502895'}, 'P101', 'Q1622272']
SELECT DISTINCT ?j WHERE { ?j property:P101 ?t . ?j rdf:type ontology:Q502895 . VALUES ( ?t ) { ( resource:Q169470 ) ( resource:Q1622272 ) } }
Henry Augustus Rowland James S. Langer Adi Bulsara Nicholas J. Phillips Hermann Schmidt Eliška Klimková-Deutschová
Eliška Klimková-Deutschová, Henry Augustus Rowland and Hermann Schmidt work in the domain of those occupations
Eliška Klimková-Deutschová Henry Augustus Rowland Hermann Schmidt
action filter_type
action find_reverse
entity prev_answer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'physicist'] [{'concept': 'common name'}, 'field of work', 'university teacher']
SELECT DISTINCT ?j WHERE { ?j property:field_of_work ?t . ?j rdf:type ontology:common_name . VALUES ( ?t ) { ( resource:physicist ) ( resource:university_teacher ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q169470
P425
Q336
USER
Which science has that one as the associated field of occupation ?
(Q169470,P425,c(Q336))
action filter_type
action find
entity Q169470
relation P425
type Q336
['Q169470', 'P425', {'concept': 'Q336'}]
SELECT DISTINCT ?f WHERE { resource:Q169470 property:P425 ?f . ?f rdf:type ontology:Q336 }
physicist
action filter_type
action find
entity physicist
relation field of this occupation
type science
['physicist', 'field of this occupation', {'concept': 'science'}]
SELECT DISTINCT ?f WHERE { resource:physicist property:field_of_this_occupation ?f . ?f rdf:type ontology:science }
[]
science
Clarification for simple ques.
Q169470
SYSTEM
Did you mean physicist ?
Q21030230 Q505197 Q1612625
(Q21030230,P425,c(Q336)) (Q505197,P425,c(Q336)) (Q1612625,P425,c(Q336))
[ANSWER]
['Q21030230', 'P425', {'concept': 'Q336'}] ['Q505197', 'P425', {'concept': 'Q336'}] ['Q1612625', 'P425', {'concept': 'Q336'}]
SELECT DISTINCT ?f WHERE { resource:Q169470 property:P425 ?f . ?f rdf:type ontology:Q336 }
Eliška Klimková-Deutschová Henry Augustus Rowland Hermann Schmidt
Did you mean physicist ?
physicist
['Eliška Klimková-Deutschová', 'field of this occupation', {'concept': 'science'}] ['Henry Augustus Rowland', 'field of this occupation', {'concept': 'science'}] ['Hermann Schmidt', 'field of this occupation', {'concept': 'science'}]
SELECT DISTINCT ?f WHERE { resource:physicist property:field_of_this_occupation ?f . ?f rdf:type ontology:science }
[]
Simple Question (Coreferenced)
USER
Yes
(Q169470,P425,c(Q336))
['Q169470', 'P425', {'concept': 'Q336'}]
['physicist', 'field of this occupation', {'concept': 'science'}]
[]
Q413
SYSTEM
physics
Q413
(Q169470,P425,c(Q336))
action filter_type
action find
entity Q169470
relation P425
type Q336
[ANSWER] has that one as the associated field of occupation
['Q169470', 'P425', {'concept': 'Q336'}]
SELECT DISTINCT ?f WHERE { resource:Q169470 property:P425 ?f . ?f rdf:type ontology:Q336 }
physics
Physics has that one as the associated field of occupation
physics
action filter_type
action find
entity physicist
relation field of this occupation
type science
['physicist', 'field of this occupation', {'concept': 'science'}]
SELECT DISTINCT ?f WHERE { resource:physicist property:field_of_this_occupation ?f . ?f rdf:type ontology:science }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q413
P425
Q12737077
USER
Which occupation does that science belong to ?
(c(Q12737077),P425,Q413)
action filter_type
action find_reverse
entity Q413
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q413']
SELECT DISTINCT ?c WHERE { ?c property:P425 resource:Q413 . ?c rdf:type ontology:Q12737077 }
physics
action filter_type
action find_reverse
entity physics
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'physics']
SELECT DISTINCT ?c WHERE { ?c property:field_of_this_occupation resource:physics . ?c rdf:type ontology:occupation }
[]
occupation
Q169470
SYSTEM
physicist
Q169470
(c(Q12737077),P425,Q413)
action filter_type
action find_reverse
entity Q413
relation P425
type Q12737077
That science belongs to [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q413']
SELECT DISTINCT ?c WHERE { ?c property:P425 resource:Q413 . ?c rdf:type ontology:Q12737077 }
physicist
That science belongs to physicist
physicist
action filter_type
action find_reverse
entity physics
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'physics']
SELECT DISTINCT ?c WHERE { ?c property:field_of_this_occupation resource:physics . ?c rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the names of the patron saint of atleast 3 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { FILTER ( ?w >= 3 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?x property:P417 ?y . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?y } }
action count
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { FILTER ( ?w >= 3 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?x property:patron_saint ?y . ?y rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?y } }
[]
common name occupation
SYSTEM
6
Q128538 Q192816 Q43982 Q179718 Q43600 Q200895
(c(Q12737077),P417,c(Q502895))
action count
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { FILTER ( ?w >= 3 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?x property:P417 ?y . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?y } }
Luke the Evangelist Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Agatha of Sicily
6
action count
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { FILTER ( ?w >= 3 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?w ) WHERE { ?x property:patron_saint ?y . ?y rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?y } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q12737077 Q732577 Q2342494
USER
Which occupations were discussed in min number of publications or collectables ?
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?r WHERE { VALUES ( ?m ) { ( ontology:Q732577 ) ( ontology:Q2342494 ) } . ?u rdf:type ?m } GROUP BY ?r } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?v WHERE { { ?a property:P921 ?v . ?a rdf:type ontology:Q732577 . ?v rdf:type ontology:Q12737077 } UNION { ?a property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q2342494 } } GROUP BY ?v } }
action argmin
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?r WHERE { VALUES ( ?m ) { ( ontology:publication ) ( ontology:collectable ) } . ?u rdf:type ?m } GROUP BY ?r } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?v WHERE { { ?a property:main_subject ?v . ?a rdf:type ontology:publication . ?v rdf:type ontology:occupation } UNION { ?a property:main_subject ?v . ?v rdf:type ontology:occupation . ?a rdf:type ontology:collectable } } GROUP BY ?v } }
[]
occupation publication collectable
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 Q36180 Q3315094 Q622807 Q7358 Q131512 Q1708232 Q842782 Q378622 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q2961580 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q486839 Q510373 Q899758 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q483501 Q152002 Q1114448 Q16533 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q133485 Q1477129 Q158852 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q17143199 Q384593 Q2095549 Q372436 Q182436 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
[ANSWERS] were discussed in min number of publications or collectables
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?r WHERE { VALUES ( ?m ) { ( ontology:Q732577 ) ( ontology:Q2342494 ) } . ?u rdf:type ?m } GROUP BY ?r } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?v WHERE { { ?a property:P921 ?v . ?a rdf:type ontology:Q732577 . ?v rdf:type ontology:Q12737077 } UNION { ?a property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q2342494 } } GROUP BY ?v } }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor writer Prime Minister of Hungary seiyū clown farmer medallist detective racing driver Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates candidate taxi driver gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier member of parliament Lord High Steward violist Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil artist pastor cartoonist judge nanny caricaturist painter American football player legal profession composer rabbi völva conductor comedian photographer peasant missionary United States federal judge musician Nomarch medical examiner police officer aviator statesman librarian rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
Fletcher Christian, farmer and librarian were discussed in min number of publications or collectables
Fletcher Christian farmer librarian
action argmin
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?r WHERE { VALUES ( ?m ) { ( ontology:publication ) ( ontology:collectable ) } . ?u rdf:type ?m } GROUP BY ?r } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?v WHERE { { ?a property:main_subject ?v . ?a rdf:type ontology:publication . ?v rdf:type ontology:occupation } UNION { ?a property:main_subject ?v . ?v rdf:type ontology:occupation . ?a rdf:type ontology:collectable } } GROUP BY ?v } }
[]