Simple Question (Direct)
Simple Question
Q23890977
P27
Q1048835
USER
Which political territory is the country of citizenship of Paul O'Brien ?
(Q23890977,P27,c(Q1048835))
action filter_type
action find
entity Q23890977
relation P27
type Q1048835
['Q23890977', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q23890977 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Paul O'Brien
action filter_type
action find
entity Paul O'Brien
relation country of citizenship
type political territorial entity
["Paul O'Brien", 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Paul_O'Brien property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q23890977,P27,c(Q1048835))
action filter_type
action find
entity Q23890977
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Paul O'Brien
['Q23890977', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q23890977 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Canada
Canada is the country of citizenship of Paul O'Brien
Canada
action filter_type
action find
entity Paul O'Brien
relation country of citizenship
type political territorial entity
["Paul O'Brien", 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Paul_O'Brien property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q23890977
P21
Q290
USER
Which sex does that person belong to ?
(Q16,P21,c(Q290))
action filter_type
action find
entity Q23890977
relation P21
type Q290
['Q16', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q23890977 property:P21 ?f . ?f rdf:type ontology:Q290 }
Paul O'Brien
action filter_type
action find
entity Paul O'Brien
relation gender
type sex
['Canada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Paul_O'Brien property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16,P21,c(Q290))
action filter_type
action find
entity Q23890977
relation P21
type Q290
That person belongs to [ANSWER]
['Q16', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q23890977 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Paul O'Brien
relation gender
type sex
['Canada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Paul_O'Brien property:gender ?f . ?f rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q7597251 Q23890977
P21
Q290
USER
Or Stalin Colinet?
OR((Q23890977,P21,c(Q290)), (Q7597251,P21,c(Q290)))
action filter_type
action union
action find
entity Q23890977
relation P21
action find
entity Q7597251
relation P21
type Q290
{'OR': [['Q23890977', 'P21', {'concept': 'Q290'}], ['Q7597251', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q23890977 property:P21 ?y } UNION { resource:Q7597251 property:P21 ?y } } . ?y rdf:type ontology:Q290 }
Stalin Colinet Paul O'Brien
action filter_type
action union
action find
entity Paul O'Brien
relation gender
action find
entity Stalin Colinet
relation gender
type sex
{'OR': [["Paul O'Brien", 'gender', {'concept': 'sex'}], ['Stalin Colinet', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Paul_O'Brien property:gender ?y } UNION { resource:Stalin_Colinet property:gender ?y } } . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q23890977,P21,c(Q290)), (Q7597251,P21,c(Q290)))
action filter_type
action union
action find
entity Q23890977
relation P21
action find
entity Q7597251
relation P21
type Q290
[ANSWER] Colinet Or Stalin
{'OR': [['Q23890977', 'P21', {'concept': 'Q290'}], ['Q7597251', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q23890977 property:P21 ?y } UNION { resource:Q7597251 property:P21 ?y } } . ?y rdf:type ontology:Q290 }
male
Male Colinet Or Stalin
male
action filter_type
action union
action find
entity Paul O'Brien
relation gender
action find
entity Stalin Colinet
relation gender
type sex
{'OR': [["Paul O'Brien", 'gender', {'concept': 'sex'}], ['Stalin Colinet', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Paul_O'Brien property:gender ?y } UNION { resource:Stalin_Colinet property:gender ?y } } . ?y rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7597251
P106
Q12737077
USER
What does Stalin Colinet do for a living?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q7597251
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q7597251 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Stalin Colinet
action filter_type
action find
entity Stalin Colinet
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Stalin_Colinet property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q7597251
relation P106
type Q12737077
Stalin Colinet does an [ANSWER] for a living
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q7597251 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
American football player
Stalin Colinet does an American football player for a living
American football player
action filter_type
action find
entity Stalin Colinet
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Stalin_Colinet property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q732577 Q386724
USER
Which occupations were atmost 1 publications or works mainly about ?
(c(Q732577)|c(Q386724),P921,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
value 1
[[{'concept': 'Q732577'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?t WHERE { { ?x property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q732577 } UNION { ?x property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q386724 } } GROUP BY ?t } . FILTER ( ?w <= 1 ) }
action atmost
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 work
value 1
[[{'concept': 'publication'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?t WHERE { { ?x property:main_subject ?t . ?t rdf:type ontology:occupation . ?x rdf:type ontology:publication } UNION { ?x property:main_subject ?t . ?t rdf:type ontology:occupation . ?x rdf:type ontology:work } } GROUP BY ?t } . FILTER ( ?w <= 1 ) }
[]
occupation publication work
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q9402 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q732577)|c(Q386724),P921,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
value 1
[ANSWERS] were atmost 1 publications or works mainly about
[[{'concept': 'Q732577'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?t WHERE { { ?x property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q732577 } UNION { ?x property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q386724 } } GROUP BY ?t } . FILTER ( ?w <= 1 ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect 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 association football player candidate ninja taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
Fletcher Christian, farmer and librarian were atmost 1 publications or works mainly about
Fletcher Christian farmer librarian
action atmost
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 work
value 1
[[{'concept': 'publication'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?t WHERE { { ?x property:main_subject ?t . ?t rdf:type ontology:occupation . ?x rdf:type ontology:publication } UNION { ?x property:main_subject ?t . ?t rdf:type ontology:occupation . ?x rdf:type ontology:work } } GROUP BY ?t } . FILTER ( ?w <= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q386724 Q191067
USER
How many occupations were discussed in atmost 3 works and articles ?
(c(Q386724)|c(Q191067),P921,c(Q12737077))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 3
[[{'concept': 'Q386724'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { FILTER ( ?g <= 3 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?w WHERE { { ?j property:P921 ?w . ?j rdf:type ontology:Q386724 . ?w rdf:type ontology:Q12737077 } UNION { ?j property:P921 ?w . ?w rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q191067 } } GROUP BY ?w } }
action count
action atmost
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 3
[[{'concept': 'work'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { FILTER ( ?g <= 3 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?w WHERE { { ?j property:main_subject ?w . ?j rdf:type ontology:work . ?w rdf:type ontology:occupation } UNION { ?j property:main_subject ?w . ?w rdf:type ontology:occupation . ?j rdf:type ontology:article } } GROUP BY ?w } }
[]
occupation work article
SYSTEM
100
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q9402 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q386724)|c(Q191067),P921,c(Q12737077))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 3
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { FILTER ( ?g <= 3 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?w WHERE { { ?j property:P921 ?w . ?j rdf:type ontology:Q386724 . ?w rdf:type ontology:Q12737077 } UNION { ?j property:P921 ?w . ?w rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q191067 } } GROUP BY ?w } }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect 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 association football player candidate ninja taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
100
action count
action atmost
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 3
[[{'concept': 'work'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { FILTER ( ?g <= 3 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?w WHERE { { ?j property:main_subject ?w . ?j rdf:type ontology:work . ?w rdf:type ontology:occupation } UNION { ?j property:main_subject ?w . ?w rdf:type ontology:occupation . ?j rdf:type ontology:article } } GROUP BY ?w } }
[]