Simple Question (Direct)
Simple Question
Q2998
P106
Q12737077
USER
What is the job of Amy Johnson ?
(Q2998,P106,c(Q12737077))
action filter_type
action find
entity Q2998
relation P106
type Q12737077
['Q2998', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q2998 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Amy Johnson
action filter_type
action find
entity Amy Johnson
relation occupation
type occupation
['Amy Johnson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Amy_Johnson property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q2095549
SYSTEM
aviator
Q2095549
(Q2998,P106,c(Q12737077))
action filter_type
action find
entity Q2998
relation P106
type Q12737077
The job of Amy Johnson is an [ANSWER]
['Q2998', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q2998 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
aviator
The job of Amy Johnson is an aviator
aviator
action filter_type
action find
entity Amy Johnson
relation occupation
type occupation
['Amy Johnson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Amy_Johnson property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2998
P26
Q502895
USER
Which person is married to Amy Johnson ?
(Q2998,P26,c(Q502895))
action filter_type
action find
entity Q2998
relation P26
type Q502895
['Q2998', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q2998 property:P26 ?c . ?c rdf:type ontology:Q502895 }
Amy Johnson
action filter_type
action find
entity Amy Johnson
relation spouse
type common name
['Amy Johnson', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Amy_Johnson property:spouse ?c . ?c rdf:type ontology:common_name }
[]
common name
Q1679945
SYSTEM
Jim Mollison
Q1679945
(Q2998,P26,c(Q502895))
action filter_type
action find
entity Q2998
relation P26
type Q502895
He [ANSWER] is married to Amy Johnson
['Q2998', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q2998 property:P26 ?c . ?c rdf:type ontology:Q502895 }
Jim Mollison
He Jim Mollison is married to Amy Johnson
Jim Mollison
action filter_type
action find
entity Amy Johnson
relation spouse
type common name
['Amy Johnson', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Amy_Johnson property:spouse ?c . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P26
Q502895
USER
How many people are the spouse of that person ?
(c(Q502895),P26,Q1679945)
action count
action filter_type
action find_reverse
entity Q1679945
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q1679945']
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P26 resource:Q1679945 . ?v rdf:type ontology:Q502895 }
action count
action filter_type
action find_reverse
entity Jim Mollison
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Jim Mollison']
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:spouse resource:Jim_Mollison . ?v rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q2998
(c(Q502895),P26,Q1679945)
action count
action filter_type
action find_reverse
entity Q1679945
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q1679945']
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P26 resource:Q1679945 . ?v rdf:type ontology:Q502895 }
Amy Johnson
1
action count
action filter_type
action find_reverse
entity Jim Mollison
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Jim Mollison']
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:spouse resource:Jim_Mollison . ?v rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q15995818
P248
Q223393 Q163740 Q502895
USER
How many people have been referred in less number of literary genres or nonprofit organizations than John Thompson ?
(c(Q502895),P248,c(Q223393)|c(Q163740))
action count
action less
action union
action find_tuple_counts
relation P248
type Q502895
type Q223393
action find_tuple_counts
relation P248
type Q502895
type Q163740
action count
action filter_multi_types
action find
entity Q15995818
relation P248
type Q223393
type Q163740
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q223393'}, {'concept': 'Q163740'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Q15995818 property:P248 ?o . { { ?o rdf:type ontology:Q223393 } UNION { ?o rdf:type ontology:Q163740 } } } } . FILTER ( ?h < ?a ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:Q163740 ) ( ontology:Q223393 ) } . ?i rdf:type ?k } GROUP BY ?q } }
John Thompson
action count
action less
action union
action find_tuple_counts
relation stated in
type common name
type literary genre
action find_tuple_counts
relation stated in
type common name
type nonprofit organization
action count
action filter_multi_types
action find
entity John Thompson
relation stated in
type literary genre
type nonprofit organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'literary genre'}, {'concept': 'nonprofit organization'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:John_Thompson property:stated_in ?o . { { ?o rdf:type ontology:literary_genre } UNION { ?o rdf:type ontology:nonprofit_organization } } } } . FILTER ( ?h < ?a ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:nonprofit_organization ) ( ontology:literary_genre ) } . ?i rdf:type ?k } GROUP BY ?q } }
[]
literary genre nonprofit organization common name
SYSTEM
333
Q16859599 Q6130307 Q6255166 Q6255164 Q5239877 Q5239876 Q5144961 Q16210814 Q7342716 Q7342713 Q5239896 Q5239895 Q2699786 Q18529684 Q6237327 Q6237320 Q6237321 Q6237323 Q8017696 Q5232852 Q16859511 Q17402519 Q6257923 Q6255435 Q6262996 Q6262991 Q15456236 Q6249889 Q6255181 Q6249883 Q6255184 Q18527481 Q6244753 Q861695 Q6236108 Q6262693 Q16730720 Q6236103 Q6242872 Q6260673 Q6260669 Q6260667 Q6236088 Q16062974 Q18546647 Q6236083 Q6236081 Q5240345 Q16065533 Q9069823 Q1626914 Q6145026 Q5606266 Q5606264 Q5606262 Q5606263 Q18546633 Q18546632 Q5606268 Q16857953 Q16849502 Q16244253 Q22936292 Q18530177 Q18810870 Q16195622 Q6249899 Q1879480 Q6258326 Q6246971 Q16859464 Q18810862 Q18810864 Q16106932 Q11035229 Q8019373 Q8019371 Q18530179 Q18527610 Q6260355 Q18534216 Q18534214 Q6130319 Q6260650 Q6260652 Q6260653 Q6249871 Q6260655 Q6249873 Q6249879 Q6221412 Q16060029 Q7351128 Q7351124 Q7351123 Q16908903 Q16863901 Q21511610 Q3528952 Q1776423 Q6228764 Q6228766 Q6246935 Q5232857 Q5232854 Q18546651 Q5232859 Q18529777 Q7795179 Q6257938 Q1916387 Q8018837 Q18527125 Q3116279 Q6145023 Q6145020 Q11979017 Q15999511 Q18530176 Q18530175 Q18530173 Q18385557 Q6249895 Q18530178 Q16848723 Q18810866 Q8004400 Q18530282 Q5537308 Q15990337 Q16886405 Q18530281 Q18530280 Q3703350 Q18338285 Q6242867 Q6242862 Q704916 Q6239285 Q18531059 Q18527375 Q16850547 Q6236099 Q18338267 Q16031260 Q18531060 Q16066831 Q6255420 Q16059754 Q11919459 Q18527305 Q18603564 Q6262713 Q6239287 Q6130325 Q6130320 Q5606270 Q5606272 Q5606274 Q5606277 Q18546628 Q17626521 Q18546621 Q18559712 Q18559713 Q6221420 Q16071955 Q5239912 Q6221426 Q6221428 Q14950004 Q15994621 Q15994622 Q17423413 Q7493391 Q8020388 Q6239263 Q6237345 Q8020387 Q8020385 Q15461577 Q16031816 Q6255407 Q18527054 Q6257940 Q5239881 Q17308862 Q5239884 Q8019900 Q8019902 Q16859222 Q5240337 Q6228730 Q15990069 Q6265189 Q16090838 Q18534834 Q18534833 Q18534831 Q4786783 Q4096102 Q16065305 Q16228915 Q15637844 Q4679001 Q6237308 Q6237302 Q8017685 Q8017687 Q8017683 Q8017682 Q5241199 Q6241395 Q5241193 Q5241194 Q6263006 Q6263007 Q15452052 Q6255417 Q16105132 Q6262977 Q6262978 Q18593210 Q5537317 Q6246952 Q5537315 Q6246950 Q526328 Q5537319 Q18527381 Q6242859 Q18527209 Q16027113 Q6242044 Q18166520 Q18546505 Q18530220 Q18526878 Q5239909 Q18546619 Q18546617 Q16105467 Q5239906 Q5144957 Q6236101 Q5144959 Q5239888 Q3703375 Q5090064 Q1459540 Q16857323 Q7342708 Q5239885 Q15982602 Q5233457 Q14951093 Q8020399 Q6239258 Q8020394 Q8020396 Q8020390 Q6221424 Q21515457 Q17385895 Q16466630 Q16031827 Q16857661 Q6255286 Q5241196 Q6262733 Q6262984 Q18530275 Q18530276 Q18530278 Q18530279 Q15994581 Q6244748 Q6470045 Q2778111 Q18546659 Q18546658 Q16859187 Q18546653 Q1101329 Q18546650 Q18546656 Q18546655 Q5240358 Q26707638 Q5601513 Q16142930 Q17021417 Q6130341 Q5606257 Q17364116 Q4955213 Q5606258 Q16067356 Q15782600 Q18530180 Q18530181 Q6263011 Q10363011 Q6257915 Q6145009 Q6145005 Q6145007 Q6145001 Q5233462 Q5233466 Q333770 Q6251897 Q9311159 Q6242832 Q5537322 Q5537325 Q6246965 Q6246963 Q6246961 Q16066618 Q8020402 Q8019368 Q6262709 Q6262704 Q6262700 Q6242842 Q16225515 Q18527351 Q5241210 Q15990004 Q16065563 Q968659 Q18546195
(c(Q502895),P248,c(Q223393)|c(Q163740))
action count
action less
action union
action find_tuple_counts
relation P248
type Q502895
type Q223393
action find_tuple_counts
relation P248
type Q502895
type Q163740
action count
action filter_multi_types
action find
entity Q15995818
relation P248
type Q223393
type Q163740
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q223393'}, {'concept': 'Q163740'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Q15995818 property:P248 ?o . { { ?o rdf:type ontology:Q223393 } UNION { ?o rdf:type ontology:Q163740 } } } } . FILTER ( ?h < ?a ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:Q163740 ) ( ontology:Q223393 ) } . ?i rdf:type ?k } GROUP BY ?q } }
William Thompson James Brown John Roberts John Roberts David Smith David Smith Colin Campbell David Evans Robert Campbell Robert Campbell David Smith David Smith Colin Campbell David Davies John Hall John Hall John Hall John Hall William Robinson David Davies John Robinson Greg Smith John Simpson John Rogers John Ward John Ward William Williams John Murphy John Roberts John Murphy John Roberts Robert Williams John Lewis William Robinson John Gray John Walker John Kennedy John Gray John Kennedy John Thompson John Thompson John Thompson John Gray James Walker John Williams John Gray John Gray David Thomas John Gray Robert Williams Greg Smith James Walker Greg Smith Greg Smith Greg Smith Greg Smith John Smith John Smith Greg Smith John Martin David Wilson John Martin Gilles De Haes John Brown John Robinson John Kennedy John Murphy Léonard Limousin John Smith John Martin John Parker John Robinson John Robinson David Evans John Carter William Thompson William Thompson John Brown John Smith John Taylor John Ward John Taylor James Brown John Thompson John Thompson John Thompson John Murphy John Thompson John Murphy John Murphy John Bell David Davies Robert Williams Robert Williams Robert Williams William Walker David Davies Dunja Lango George Brown Raud the Strong John Davies John Davies John Martin David Davies David Davies John Williams David Davies James Brown Thomas Williams John Simpson David Smith William Stewart John Jones Greg Smith James Walker James Walker John Martin William Robinson John Brown John Brown John Brown John Walker John Murphy John Brown John Walker John Robinson William Anderson John Randall Clarke George Brown James Walker John Walker John Clarke John Clarke David Thomas Borja Mendia John Kennedy John Kennedy Li Ruihuan John Hill William Brown John Murray John Martin John Gray Ethan Wragge John Murphy William Brown James Walker John Rogers James Brown Epimenides John Martin William Thompson John Walker John Hill James Brown James Brown Greg Smith Greg Smith Greg Smith Greg Smith John Smith Colin Campbell John Roland Phillips David Christopher Davies David Lewis Davies John Bell John Murphy David Smith John Bell John Bell John Hill John Martin John Martin James Brown Shelby Harris William Williams John Hill John Hall William Williams William Williams John Martin William Walker John Rogers John Hill John Simpson David Smith Colin Campbell David Smith William Walker William Walker Robert Williams David Thomas John Davies John Jackson John Young John Kennedy John Davis John Davis John Davis John Bell James Brown George Brown John Wilson David Smith Adam Dunkels John Hall John Hall William Robinson William Robinson William Robinson William Robinson David Wilson John Jackson David Wilson David Wilson John Ward John Ward John Rogers John Rogers John Kennedy John Ward John Ward John Davies George Brown John Martin George Brown John Martin Dairis Bertāns George Brown John Murray John Kennedy John Lewis John Roberts John Jones William Thompson John Campbell John Campbell John Evans David Smith John Phillips John Phillips John Rogers David Smith Colin Campbell John Gray Colin Campbell David Smith David Wilson George Brown John Thompson John Evans Robert Campbell David Smith John Young David Evans John Jackson William Williams John Hill William Williams William Williams William Williams John Bell Rolando Valdès-Blain David Evans John Bell John Rogers John Hall John Robinson David Wilson John Walker John Ward John Clarke John Clarke John Clarke John Clarke John Lewis John Lewis Lady Colin Campbell Greg Smith John Williams John Williams James Walker John Williams John Rogers John Williams John Williams John Williams David Thomas Delobel Colin Campbell John Murphy John Walker James Brown Greg Smith John Davies Brady Sallee Greg Smith John Walker John Hill John Brown John Wright Brown John Ward Risques Pereira John Simpson James Walker James Walker James Walker James Walker David Evans David Evans Victorinus John Parker Robert Williams John Kennedy George Brown George Brown John Martin John Martin John Martin John Ward William Williams William Thompson John Walker John Walker John Walker John Kennedy John Simpson John Moore David Wilson John Gray William Thompson Carsten Tank George Smith
333
action count
action less
action union
action find_tuple_counts
relation stated in
type common name
type literary genre
action find_tuple_counts
relation stated in
type common name
type nonprofit organization
action count
action filter_multi_types
action find
entity John Thompson
relation stated in
type literary genre
type nonprofit organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'literary genre'}, {'concept': 'nonprofit organization'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:John_Thompson property:stated_in ?o . { { ?o rdf:type ontology:literary_genre } UNION { ?o rdf:type ontology:nonprofit_organization } } } } . FILTER ( ?h < ?a ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:nonprofit_organization ) ( ontology:literary_genre ) } . ?i rdf:type ?k } GROUP BY ?q } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2095549
P425
Q9332
USER
Which behavior has aviator as the associated field of occupation ?
(Q2095549,P425,c(Q9332))
action filter_type
action find
entity Q2095549
relation P425
type Q9332
['Q2095549', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q9332 . resource:Q2095549 property:P425 ?v }
aviator
action filter_type
action find
entity aviator
relation field of this occupation
type behavior
['aviator', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:behavior . resource:aviator property:field_of_this_occupation ?v }
[]
behavior
Q765633
SYSTEM
aviation
Q765633
(Q2095549,P425,c(Q9332))
action filter_type
action find
entity Q2095549
relation P425
type Q9332
Was [ANSWER] has aviator as the associated field of occupation
['Q2095549', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q9332 . resource:Q2095549 property:P425 ?v }
aviation
Was aviation has aviator as the associated field of occupation
aviation
action filter_type
action find
entity aviator
relation field of this occupation
type behavior
['aviator', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:behavior . resource:aviator property:field_of_this_occupation ?v }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q11204 Q895526 Q12737077
USER
Which occupations were appointed by exactly 1 legislatures or authority organs ?
(c(Q12737077),P748,c(Q11204)|c(Q895526))
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q895526
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) ?l WHERE { VALUES ( ?h ) { ( ontology:Q11204 ) ( ontology:Q895526 ) } . ?w rdf:type ?h } GROUP BY ?l } . FILTER ( ?q = 1 ) }
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type authority organ
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) ?l WHERE { VALUES ( ?h ) { ( ontology:legislature ) ( ontology:authority_organ ) } . ?w rdf:type ?h } GROUP BY ?l } . FILTER ( ?q = 1 ) }
[]
legislature authority organ occupation
Q655407 Q4122271 Q25863345
SYSTEM
President of the People's Republic of China, Premier of the People's Republic of China, Secretary of State for International Trade
Q2666591 Q11793630 Q1072417 Q2287650 Q5333410 Q261746 Q1029955 Q642859 Q967762 Q655407 Q940135 Q2305968 Q596123 Q7444340 Q2419581 Q25863345 Q2747647 Q1043568 Q13645132 Q636207 Q2003296 Q967750 Q866680 Q783785 Q1072415 Q26000995 Q1763459 Q1591470 Q735015 Q1029968 Q2297543 Q4122271 Q967737 Q6542448 Q2301213 Q1658460 Q786242 Q1434880
(c(Q12737077),P748,c(Q11204)|c(Q895526))
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q895526
value 1
[ANSWERS] were appointed by exactly 1 legislatures or authority organs
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) ?l WHERE { VALUES ( ?h ) { ( ontology:Q11204 ) ( ontology:Q895526 ) } . ?w rdf:type ?h } GROUP BY ?l } . FILTER ( ?q = 1 ) }
Chair of the Federal Reserve governor of national banks of Serbia and Yugoslavia Chief of Staff of the United States Air Force United States Secretary of the Interior Economic Secretary to the Treasury United States Secretary of the Air Force United States Secretary of Agriculture United States Secretary of Homeland Security United States Secretary of Education President of the People's Republic of China United States Secretary of the Navy United States Secretary of Health and Human Services president of Bangladesh Secretary of State for Dominion Affairs United States Secretary of Housing and Urban Development Secretary of State for International Trade Secretary of State for Defence Prime Minister of Vietnam Lord Mayor of Dublin United States Attorney General United States Secretary of Commerce United States Secretary of Labor President of Vietnam Chief of Staff of the United States Army Chief of Naval Operations President of the Parliament of Catalonia Chairman of the Joint Chiefs of Staff United States Secretary of the Army United States Secretary of Defense United States Secretary of Energy United States Deputy Secretary of Defense Premier of the People's Republic of China United States Secretary of Transportation Librarian of Congress United States Deputy Secretary of State United States Secretary of Veterans Affairs White House Chief of Staff Surgeon General of the United States
President of the People's Republic of China, Premier of the People's Republic of China and Secretary of State for International Trade were appointed by exactly 1 legislatures or authority organs
President of the People's Republic of China Premier of the People's Republic of China Secretary of State for International Trade
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type authority organ
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) ?l WHERE { VALUES ( ?h ) { ( ontology:legislature ) ( ontology:authority_organ ) } . ?w rdf:type ?h } GROUP BY ?l } . FILTER ( ?q = 1 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P361
Q192350 Q35798
USER
How many ministries or executive branches are that occupation a portion of ?
(Q25863345,P361,c(Q192350)) (Q25863345,P361,c(Q35798)) (Q655407,P361,c(Q192350)) (Q655407,P361,c(Q35798)) (Q4122271,P361,c(Q192350)) (Q4122271,P361,c(Q35798)) (Q25863345,P361,c(Q192350)) (Q25863345,P361,c(Q35798))
['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q25863345', 'P361', {'concept': 'Q35798'}] ['Q655407', 'P361', {'concept': 'Q192350'}] ['Q655407', 'P361', {'concept': 'Q35798'}] ['Q4122271', 'P361', {'concept': 'Q192350'}] ['Q4122271', 'P361', {'concept': 'Q35798'}] ['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q25863345', 'P361', {'concept': 'Q35798'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } UNION { resource:Q655407 property:P361 ?z } UNION { resource:Q655407 property:P361 ?y } UNION { resource:Q4122271 property:P361 ?z } UNION { resource:Q4122271 property:P361 ?y } UNION { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } } . ?z rdf:type ontology:Q192350 . ?y rdf:type ontology:Q35798 }
['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}] ["President of the People's Republic of China", 'part of', {'concept': 'ministry'}] ["President of the People's Republic of China", 'part of', {'concept': 'executive branch'}] ["Premier of the People's Republic of China", 'part of', {'concept': 'ministry'}] ["Premier of the People's Republic of China", 'part of', {'concept': 'executive branch'}] ['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } UNION { resource:President_of_the_People's_Republic_of_China property:part_of ?z } UNION { resource:President_of_the_People's_Republic_of_China property:part_of ?y } UNION { resource:Premier_of_the_People's_Republic_of_China property:part_of ?z } UNION { resource:Premier_of_the_People's_Republic_of_China property:part_of ?y } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } } . ?z rdf:type ontology:ministry . ?y rdf:type ontology:executive_branch }
[]
ministry executive branch
Quantitative|Count|Mult. entity type|Clarification
Q25863345
SYSTEM
Did you mean Secretary of State for International Trade ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } UNION { resource:Q655407 property:P361 ?z } UNION { resource:Q655407 property:P361 ?y } UNION { resource:Q4122271 property:P361 ?z } UNION { resource:Q4122271 property:P361 ?y } UNION { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } } . ?z rdf:type ontology:Q192350 . ?y rdf:type ontology:Q35798 }
Did you mean Secretary of State for International Trade ?
Secretary of State for International Trade
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } UNION { resource:President_of_the_People's_Republic_of_China property:part_of ?z } UNION { resource:President_of_the_People's_Republic_of_China property:part_of ?y } UNION { resource:Premier_of_the_People's_Republic_of_China property:part_of ?z } UNION { resource:Premier_of_the_People's_Republic_of_China property:part_of ?y } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } } . ?z rdf:type ontology:ministry . ?y rdf:type ontology:executive_branch }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q25863345,P361,c(Q192350)) (Q25863345,P361,c(Q35798)) (Q655407,P361,c(Q192350)) (Q655407,P361,c(Q35798)) (Q4122271,P361,c(Q192350)) (Q4122271,P361,c(Q35798)) (Q25863345,P361,c(Q192350)) (Q25863345,P361,c(Q35798))
['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q25863345', 'P361', {'concept': 'Q35798'}] ['Q655407', 'P361', {'concept': 'Q192350'}] ['Q655407', 'P361', {'concept': 'Q35798'}] ['Q4122271', 'P361', {'concept': 'Q192350'}] ['Q4122271', 'P361', {'concept': 'Q35798'}] ['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q25863345', 'P361', {'concept': 'Q35798'}]
['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}] ["President of the People's Republic of China", 'part of', {'concept': 'ministry'}] ["President of the People's Republic of China", 'part of', {'concept': 'executive branch'}] ["Premier of the People's Republic of China", 'part of', {'concept': 'ministry'}] ["Premier of the People's Republic of China", 'part of', {'concept': 'executive branch'}] ['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}]
[]
SYSTEM
2
Q25991767 Q112014
(Q25863345,P361,c(Q192350)) (Q25863345,P361,c(Q35798)) (Q655407,P361,c(Q192350)) (Q655407,P361,c(Q35798)) (Q4122271,P361,c(Q192350)) (Q4122271,P361,c(Q35798)) (Q25863345,P361,c(Q192350)) (Q25863345,P361,c(Q35798))
[ANSWER]
['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q25863345', 'P361', {'concept': 'Q35798'}] ['Q655407', 'P361', {'concept': 'Q192350'}] ['Q655407', 'P361', {'concept': 'Q35798'}] ['Q4122271', 'P361', {'concept': 'Q192350'}] ['Q4122271', 'P361', {'concept': 'Q35798'}] ['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q25863345', 'P361', {'concept': 'Q35798'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } UNION { resource:Q655407 property:P361 ?z } UNION { resource:Q655407 property:P361 ?y } UNION { resource:Q4122271 property:P361 ?z } UNION { resource:Q4122271 property:P361 ?y } UNION { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } } . ?z rdf:type ontology:Q192350 . ?y rdf:type ontology:Q35798 }
Department for International Trade Cabinet of the United Kingdom
2
['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}] ["President of the People's Republic of China", 'part of', {'concept': 'ministry'}] ["President of the People's Republic of China", 'part of', {'concept': 'executive branch'}] ["Premier of the People's Republic of China", 'part of', {'concept': 'ministry'}] ["Premier of the People's Republic of China", 'part of', {'concept': 'executive branch'}] ['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } UNION { resource:President_of_the_People's_Republic_of_China property:part_of ?z } UNION { resource:President_of_the_People's_Republic_of_China property:part_of ?y } UNION { resource:Premier_of_the_People's_Republic_of_China property:part_of ?z } UNION { resource:Premier_of_the_People's_Republic_of_China property:part_of ?y } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } } . ?z rdf:type ontology:ministry . ?y rdf:type ontology:executive_branch }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q25863345 Q1559990
P39
Q502895
USER
How many people were responsible for occupying the position of Secretary of State for International Trade or People's Freedom Party ?
(c(Q502895),P39,Q25863345) (c(Q502895),P39,Q1559990)
action count
action union
action filter_type
action find_reverse
entity Q25863345
relation P39
type Q502895
action filter_type
action find_reverse
entity Q1559990
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q25863345'] [{'concept': 'Q502895'}, 'P39', 'Q1559990']
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:P39 ?u . VALUES ( ?u ) { ( resource:Q25863345 ) ( resource:Q1559990 ) } }
Secretary of State for International Trade People's Freedom Party
action count
action union
action filter_type
action find_reverse
entity Secretary of State for International Trade
relation position held
type common name
action filter_type
action find_reverse
entity People's Freedom Party
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Secretary of State for International Trade'] [{'concept': 'common name'}, 'position held', "People's Freedom Party"]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:position_held ?u . VALUES ( ?u ) { ( resource:Secretary_of_State_for_International_Trade ) ( resource:People's_Freedom_Party ) } }
[]
common name
SYSTEM
2
Q332374 Q1658622
(c(Q502895),P39,Q25863345) (c(Q502895),P39,Q1559990)
action count
action union
action filter_type
action find_reverse
entity Q25863345
relation P39
type Q502895
action filter_type
action find_reverse
entity Q1559990
relation P39
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q25863345'] [{'concept': 'Q502895'}, 'P39', 'Q1559990']
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:P39 ?u . VALUES ( ?u ) { ( resource:Q25863345 ) ( resource:Q1559990 ) } }
Liam Fox Ilya Yashin
2
action count
action union
action filter_type
action find_reverse
entity Secretary of State for International Trade
relation position held
type common name
action filter_type
action find_reverse
entity People's Freedom Party
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Secretary of State for International Trade'] [{'concept': 'common name'}, 'position held', "People's Freedom Party"]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:position_held ?u . VALUES ( ?u ) { ( resource:Secretary_of_State_for_International_Trade ) ( resource:People's_Freedom_Party ) } }
[]